Revert "do not ignore MSR=0 even if ignore_bad_msrs is set"
MSR=0 is valid MSR (used for Machine Check Architecture)
This reverts commit cf03c00ef0
.
This commit is contained in:
parent
4d227d15fb
commit
13aa25919a
@ -466,7 +466,7 @@ bool BX_CPP_AttrRegparmN(2) BX_CPU_C::handle_unknown_rdmsr(Bit32u index, Bit64u
|
||||
// failed to find the MSR, could #GP or ignore it silently
|
||||
BX_ERROR(("RDMSR: Unknown register %#x", index));
|
||||
|
||||
if (! BX_CPU_THIS_PTR ignore_bad_msrs || ! index)
|
||||
if (! BX_CPU_THIS_PTR ignore_bad_msrs)
|
||||
return 0; // will result in #GP fault due to unknown MSR
|
||||
}
|
||||
}
|
||||
@ -1094,7 +1094,7 @@ bool BX_CPP_AttrRegparmN(2) BX_CPU_C::handle_unknown_wrmsr(Bit32u index, Bit64u
|
||||
#endif
|
||||
// failed to find the MSR, could #GP or ignore it silently
|
||||
BX_ERROR(("WRMSR: Unknown register %#x", index));
|
||||
if (! BX_CPU_THIS_PTR ignore_bad_msrs || ! index)
|
||||
if (! BX_CPU_THIS_PTR ignore_bad_msrs)
|
||||
return 0; // will result in #GP fault due to unknown MSR
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user