ppcopcodes: Make MQ read only on non-601 CPUs.

This commit is contained in:
joevt 2024-03-02 01:45:24 -08:00 committed by dingusdev
parent 566706dd62
commit 094f44e92c
1 changed files with 3 additions and 1 deletions

View File

@ -927,7 +927,9 @@ void dppc_interpreter::ppc_mtspr() {
}
#endif
if (ref_spr == SPR::PVR) { // prevent writes to the read-only PVR
if (ref_spr == SPR::PVR || (
ref_spr == SPR::MQ && !is_601
)) { // prevent writes to the read-only registers
return;
}