X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_xed.c;h=3511f8a2383c2eba2bbfda616e41c0b73fed1ee6;hb=39849abeb743c4e6b669a790c307979fa8d51884;hp=2e7d853b7beece6dacd6648589b2f934da8be231;hpb=87e53002746755748475b34049da135d7adde9c1;p=palacios.releases.git diff --git a/palacios/src/palacios/vmm_xed.c b/palacios/src/palacios/vmm_xed.c index 2e7d853..3511f8a 100644 --- a/palacios/src/palacios/vmm_xed.c +++ b/palacios/src/palacios/vmm_xed.c @@ -568,7 +568,7 @@ static int get_memory_operand(struct guest_info * info, xed_decoded_inst_t * xe int addr_width = v3_get_addr_width(info);; // struct v3_segment * seg_reg; - PrintDebug("Xen mode = %s\n", xed_machine_mode_enum_t2str(xed_state_get_machine_mode(info->decoder_state))); + PrintDebug("Xed mode = %s\n", xed_machine_mode_enum_t2str(xed_state_get_machine_mode(info->decoder_state))); PrintDebug("Address width: %s\n", xed_address_width_enum_t2str(xed_state_get_address_width(info->decoder_state))); PrintDebug("Stack Address width: %s\n", @@ -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);