Fix for TB SPR and disable writing to TB SPR

Now use get_time() like MFTB instead of reading for the time-based SPR.
This commit is contained in:
Raul Tambre 2014-11-18 18:03:49 +02:00
parent 11d9642639
commit f99353f649
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ private:
case 0x008: return CPU.LR; case 0x008: return CPU.LR;
case 0x009: return CPU.CTR; case 0x009: return CPU.CTR;
case 0x100: return CPU.USPRG0; case 0x100: return CPU.USPRG0;
case 0x10C: return CPU.TBL; case 0x10C: return get_time();
} }
UNK(fmt::Format("ReadSPR error: Unknown SPR 0x%x!", n)); UNK(fmt::Format("ReadSPR error: Unknown SPR 0x%x!", n));
@ -164,7 +164,7 @@ private:
case 0x008: CPU.LR = value; return; case 0x008: CPU.LR = value; return;
case 0x009: CPU.CTR = value; return; case 0x009: CPU.CTR = value; return;
case 0x100: CPU.USPRG0 = value; return; case 0x100: CPU.USPRG0 = value; return;
case 0x10C: CPU.TBL = value; return; case 0x10C: UNK("WriteSPR: Write to time-based SPR. Report this to a developer!"); return;
} }
UNK(fmt::Format("WriteSPR error: Unknown SPR 0x%x!", n)); UNK(fmt::Format("WriteSPR error: Unknown SPR 0x%x!", n));