From: Jack Lange Date: Wed, 15 Jul 2009 19:29:52 +0000 (-0500) Subject: change cpu mode detection to dynamic lookup X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=2de2dfce9b3673735569403294b0fb2a01884a8a;hp=d3b877f95b726298bb1ba71027364086bb873fe1;p=palacios.git change cpu mode detection to dynamic lookup --- diff --git a/palacios/src/palacios/vmm_xed.c b/palacios/src/palacios/vmm_xed.c index 5b32e70..24bac95 100644 --- a/palacios/src/palacios/vmm_xed.c +++ b/palacios/src/palacios/vmm_xed.c @@ -102,7 +102,7 @@ static int xed_reg_to_v3_reg(struct guest_info * info, xed_reg_enum_t xed_reg, a static int get_memory_operand(struct guest_info * info, xed_decoded_inst_t * xed_instr, uint_t index, struct x86_operand * operand); static int set_decoder_mode(struct guest_info * info, xed_state_t * state) { - switch (info->cpu_mode) { + switch (v3_get_vm_cpu_mode(info)) { case REAL: if (state->mmode != XED_MACHINE_MODE_LEGACY_16) { xed_state_init(state,