fixed compilation with VMX=1

This commit is contained in:
Stanislav Shwartsman 2011-07-29 18:41:17 +00:00
parent 62ad2a0d06
commit 37d8523ab4

View File

@ -155,6 +155,7 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::VMexit_PAUSE(bxInstruction_c *i)
VMexit(i, VMX_VMEXIT_PAUSE, 0);
}
#if BX_SUPPORT_VMX >= 2
if (SECONDARY_VMEXEC_CONTROL(VMX_VM_EXEC_CTRL3_PAUSE_LOOP_VMEXIT) && CPL == 0) {
VMCS_CACHE *vm = &BX_CPU_THIS_PTR vmcs;
Bit64u currtime = bx_pc_system.time_ticks();
@ -167,6 +168,7 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::VMexit_PAUSE(bxInstruction_c *i)
}
vm->last_pause_time = currtime;
}
#endif
}
void BX_CPP_AttrRegparmN(2) BX_CPU_C::VMexit_INVLPG(bxInstruction_c *i, bx_address laddr)