X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_xed.c;h=3511f8a2383c2eba2bbfda616e41c0b73fed1ee6;hp=25ca0769823b02f7e969009660e9988a35e28621;hb=39849abeb743c4e6b669a790c307979fa8d51884;hpb=57de08049d9a345445d26741c5ee0f7f9e5c2fcc diff --git a/palacios/src/palacios/vmm_xed.c b/palacios/src/palacios/vmm_xed.c index 25ca076..3511f8a 100644 --- a/palacios/src/palacios/vmm_xed.c +++ b/palacios/src/palacios/vmm_xed.c @@ -645,7 +645,7 @@ static int get_memory_operand(struct guest_info * info, xed_decoded_inst_t * xe // This is a horrendous hack... // XED really screwed the pooch in calculating the displacement - if (v3_get_cpu_mode(info) == LONG) { + if (v3_get_vm_cpu_mode(info) == LONG) { displacement = mem_op.displacement; } else { displacement = MASK(mem_op.displacement, mem_op.displacement_size);