Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added correct gpr size mask for long compatibility modes
Jack Lange [Sun, 8 Mar 2009 23:57:37 +0000 (18:57 -0500)]
palacios/include/palacios/vmm_decoder.h

index dc67566..20623d0 100644 (file)
@@ -250,14 +250,15 @@ static inline int is_prefix_byte(uchar_t byte) {
 static inline v3_reg_t get_gpr_mask(struct guest_info * info) {
     switch (info->cpu_mode) {
        case REAL: 
+       case LONG_16_COMPAT:
            return 0xffff;
            break;
        case PROTECTED:
+       case LONG_32_COMPAT:
        case PROTECTED_PAE:
            return 0xffffffff;
        case LONG:
-       case LONG_32_COMPAT:
-       case LONG_16_COMPAT:
+           return 0xffffffffffffffffLL;
        default:
            PrintError("Unsupported Address Mode\n");
            return -1;