Interpreter_SystemRegisters: Handle reserved/read-only bits for HID2 in mtspr

This commit is contained in:
Lioncash 2018-12-13 11:39:40 -05:00
parent 2dcd058f7d
commit c87a2f57b4

View File

@ -346,6 +346,9 @@ void Interpreter::mtspr(UGeckoInstruction inst)
// not set.
// TODO: disable write gather pipe if WPE not set
// TODO: emulate locked cache and DMA bits.
// Only the lower half of the register (upper half from a little endian perspective)
// is modifiable, except for the DMAQL field.
rSPR(index) = (rSPR(index) & 0xF0FF0000) | (old_value & 0x0F000000);
break;
case SPR_HID4: