That function is incorrect other than useless. Just use our variable that we update periodically anyway

This commit is contained in:
irisz64
2025-09-01 16:57:35 +02:00
parent 123a089598
commit 4a98610f3c

View File

@@ -360,26 +360,13 @@ bool Cop0::ProbeTLB(const TLBAccessType accessType, const u64 vaddr, u32 &paddr)
return true;
}
FORCE_INLINE bool Is64BitAddressing(const Cop0 &cp0, const u64 addr) {
switch (addr >> 62 & 3) {
case 0b00:
return cp0.status.ux;
case 0b01:
return cp0.status.sx;
case 0b11:
return cp0.status.kx;
default:
return false;
}
}
void Cop0::FireException(const ExceptionCode code, const int cop, s64 pc) {
Registers& regs = Core::GetRegs();
u16 vectorOffset = 0x0180;
if(tlbError == MISS && (code == ExceptionCode::TLBLoad || code == ExceptionCode::TLBStore)) {
if(!status.exl) {
if(Is64BitAddressing(*this, badVaddr)) vectorOffset = 0x0080;
if(is64BitAddressing) vectorOffset = 0x0080;
else vectorOffset = 0x0000;
}
}