Fix TLBP after making cop0.index a union

This commit is contained in:
SimoneN64
2023-08-28 20:11:14 +02:00
parent ae67a2ef34
commit ef4c662c60

View File

@@ -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;
}
}