X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_instr_decoder.h;h=623ca4d38ba5845884365284a1d1e5dd834a6a82;hb=5614cff13837121053e831419f569b4e6e32bcd9;hp=4341910df840ea143e38d23a1efead7f1478cc98;hpb=3b027df0b7bc5b102ac403411b0e9a756b7081a6;p=palacios.releases.git diff --git a/palacios/include/palacios/vmm_instr_decoder.h b/palacios/include/palacios/vmm_instr_decoder.h index 4341910..623ca4d 100644 --- a/palacios/include/palacios/vmm_instr_decoder.h +++ b/palacios/include/palacios/vmm_instr_decoder.h @@ -19,7 +19,6 @@ #include - /* .... Giant fucking switch tables */ @@ -262,6 +261,8 @@ static int get_operand_width(struct guest_info * info, struct x86_instr * instr, case LONG: if (instr->prefixes.rex_op_size) { return 8; + } else { + return 4; } case PROTECTED: case PROTECTED_PAE: @@ -334,6 +335,7 @@ static int get_operand_width(struct guest_info * info, struct x86_instr * instr, return -1; } + return 0; } @@ -450,7 +452,7 @@ static inline int decode_cr(struct guest_info * core, struct v3_ctrl_regs * crs = &(core->ctrl_regs); - PrintDebug("\t Ctrl regs %d\n", reg_code); +// PrintDebug("\t Ctrl regs %d\n", reg_code); switch (reg_code) { case 0: