diff --git a/bochs/cpu/msr.cc b/bochs/cpu/msr.cc index 482831145..24b65b5fc 100644 --- a/bochs/cpu/msr.cc +++ b/bochs/cpu/msr.cc @@ -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 }