More Read_U32 cleanup

This commit is contained in:
Henrik Rydgård
2026-08-11 09:08:52 +02:00
parent 3c7a323e99
commit 9396030f02
9 changed files with 57 additions and 39 deletions
+4 -3
View File
@@ -490,9 +490,10 @@ Opcode ReadUnchecked_Instruction(u32 address, bool resolveReplacements) {
return Read_Instruction(address, resolveReplacements, inst);
}
Opcode Read_Opcode_JIT(u32 address)
{
Opcode inst = Opcode(Read_U32(address));
// WARNING! Caller checks that address is valid!
Opcode Read_Opcode_JIT(u32 address) {
_dbg_assert_(Memory::IsValid4AlignedAddress(address));
Opcode inst = Opcode(ReadUnchecked_U32(address));
// No mutex around jit access here, but we assume caller has if necessary.
if (MIPS_IS_RUNBLOCK(inst.encoding) && MIPSComp::jit) {
return MIPSComp::jit->GetOriginalOp(inst);