[JIT]: Fix compilation

This commit is contained in:
SimoZ64
2025-02-26 10:40:27 +01:00
parent 7d27351609
commit 95bf6d292b
4 changed files with 5 additions and 17 deletions

View File

@@ -451,18 +451,7 @@ ExceptionCode Cop0::GetTLBExceptionCode(const TLBError error, const TLBAccessTyp
}
}
template <class T>
void Cop0::decode(T &cpu, u32 instr) {
if constexpr (std::is_same_v<decltype(cpu), Interpreter &>) {
decodeInterp(instr);
} else {
Util::panic("What the fuck did you just give me?!!");
}
}
template void Cop0::decode<Interpreter>(Interpreter &, u32);
void Cop0::decodeInterp(const u32 instr) {
void Cop0::decode(const u32 instr) {
const u8 mask_cop = instr >> 21 & 0x1F;
const u8 mask_cop2 = instr & 0x3F;
switch (mask_cop) {