From f99353f649584c272c4cc5acf032b5fd9ef21915 Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Tue, 18 Nov 2014 18:03:49 +0200 Subject: [PATCH] Fix for TB SPR and disable writing to TB SPR Now use get_time() like MFTB instead of reading for the time-based SPR. --- rpcs3/Emu/Cell/PPUInterpreter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/PPUInterpreter.h b/rpcs3/Emu/Cell/PPUInterpreter.h index 5e721ccf5f..104418d7bd 100644 --- a/rpcs3/Emu/Cell/PPUInterpreter.h +++ b/rpcs3/Emu/Cell/PPUInterpreter.h @@ -147,7 +147,7 @@ private: case 0x008: return CPU.LR; case 0x009: return CPU.CTR; 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)); @@ -164,7 +164,7 @@ private: case 0x008: CPU.LR = value; return; case 0x009: CPU.CTR = 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));