[JIT]: Specialize register write handlers

This commit is contained in:
Simone
2025-01-14 17:21:04 +01:00
committed by GitHub
parent 81eca58130
commit 23ddc0b9f7
7 changed files with 110 additions and 6 deletions

View File

@@ -76,8 +76,13 @@ void JIT::addu(u32 instr) {
code.mov(code.eax, result);
code.movsxd(code.rax, code.eax);
code.mov(GPR(RD(instr)), code.rax);
} else {
Util::panic("[JIT]: Implement non constant ADDI");
code.mov(REG(byte, gprIsConstant), 1);
return;
}
if (regs.IsRegConstant(RS(instr))) {
const s32 rs = regs.Read<s32>(RS(instr));
return;
}
}