Fix TLBP after making cop0.index a union
This commit is contained in:
@@ -72,9 +72,9 @@ void Cop0::tlbp(Registers& regs) {
|
|||||||
int match = -1;
|
int match = -1;
|
||||||
TLBEntry* entry = TLBTryMatch(regs, entryHi.raw, &match);
|
TLBEntry* entry = TLBTryMatch(regs, entryHi.raw, &match);
|
||||||
if(entry && match >= 0) {
|
if(entry && match >= 0) {
|
||||||
index.i = match;
|
index.raw = match;
|
||||||
index.p = 0;
|
|
||||||
} else {
|
} else {
|
||||||
|
index.raw = 0;
|
||||||
index.p = 1;
|
index.p = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user