no need to read ignore_bad_msrs on every reset
This commit is contained in:
parent
3b8903e19d
commit
93e152ef1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user