From ef4c662c606817ea162ebb0bc76b7a4459f68133 Mon Sep 17 00:00:00 2001 From: SimoneN64 Date: Mon, 28 Aug 2023 20:11:14 +0200 Subject: [PATCH] Fix TLBP after making cop0.index a union --- src/backend/core/registers/cop/cop0instructions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/core/registers/cop/cop0instructions.cpp b/src/backend/core/registers/cop/cop0instructions.cpp index e89e5e1c..351f5123 100644 --- a/src/backend/core/registers/cop/cop0instructions.cpp +++ b/src/backend/core/registers/cop/cop0instructions.cpp @@ -72,9 +72,9 @@ void Cop0::tlbp(Registers& regs) { int match = -1; TLBEntry* entry = TLBTryMatch(regs, entryHi.raw, &match); if(entry && match >= 0) { - index.i = match; - index.p = 0; + index.raw = match; } else { + index.raw = 0; index.p = 1; } }