fixed compilation without VMX=2

This commit is contained in:
Stanislav Shwartsman 2019-01-03 06:28:15 +00:00
parent df3ea7b553
commit 264b797363

View File

@ -798,12 +798,12 @@ VMX_error_code BX_CPU_C::VMenterLoadCheckVmControls(void)
return VMXERR_VMENTRY_INVALID_VM_CONTROL_FIELD;
}
}
#endif
if (vm->vmexec_ctrls3 & VMX_VM_EXEC_CTRL3_XSAVES_XRSTORS)
vm->xss_exiting_bitmap = VMread64(VMCS_64BIT_CONTROL_XSS_EXITING_BITMAP);
else
vm->xss_exiting_bitmap = 0;
#endif
#endif // BX_SUPPORT_X86_64