mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-06-26 14:29:31 +00:00
ppcopcodes: Make MQ read only on non-601 CPUs.
This commit is contained in:
parent
566706dd62
commit
094f44e92c
|
@ -927,7 +927,9 @@ void dppc_interpreter::ppc_mtspr() {
|
||||||
}
|
}
|
||||||
#endif
|
#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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user