mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-13 03:30: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
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user