X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_decoder.h;h=20623d0c76e1f78e89b7d0ffbc5f0a7fecfd1e1d;hb=107017ab39ef495144e1e608c686e44f0b461103;hp=dc6756628b78186620b64544f39e12dddf5b7559;hpb=9dcbb93853a8ffa6622cca0e86f4a4a29ddc52fe;p=palacios.git diff --git a/palacios/include/palacios/vmm_decoder.h b/palacios/include/palacios/vmm_decoder.h index dc67566..20623d0 100644 --- a/palacios/include/palacios/vmm_decoder.h +++ b/palacios/include/palacios/vmm_decoder.h @@ -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;