no need to read ignore_bad_msrs on every reset

This commit is contained in:
Stanislav Shwartsman 2011-03-05 18:54:23 +00:00
parent 3b8903e19d
commit 93e152ef1a

View File

@ -163,6 +163,11 @@ void BX_CPU_C::initialize(void)
load_MSRs(msrs_filename);
#endif
// ignore bad MSRS if user asked for it
#if BX_CPU_LEVEL >= 5
BX_CPU_THIS_PTR ignore_bad_msrs = SIM->get_param_bool(BXPN_IGNORE_BAD_MSRS)->get();
#endif
init_SMRAM();
#if BX_SUPPORT_VMX
@ -1051,11 +1056,6 @@ void BX_CPU_C::reset(unsigned source)
set_cpuid_defaults();
#endif
// ignore bad MSRS if user asked for it
#if BX_CPU_LEVEL >= 5
BX_CPU_THIS_PTR ignore_bad_msrs = SIM->get_param_bool(BXPN_IGNORE_BAD_MSRS)->get();
#endif
updateFetchModeMask();
BX_INSTR_RESET(BX_CPU_ID, source);