More Read_U32 cleanup

This commit is contained in:
Henrik Rydgård committed 2026-08-11 09:08:52 +02:00
1 parent 3c7a323e99
commit 9396030f02
9 files changed
+57 -39

No files matched your search

+6 -3
View File
@@ -75,9 +75,12 @@ static inline void SkipLikely() {
}
}
int MIPS_SingleStep()
{
MIPSOpcode op = Memory::Read_Opcode_JIT(mipsr4k.pc);
int MIPS_SingleStep() {
if (!Memory::IsValid4AlignedAddress(mipsr4k.pc)) {
Core_ExecException(mipsr4k.pc, mipsr4k.pc, ExecExceptionType::JUMP);
return 0;
}
MIPSOpcode op = Memory::Read_Opcode_JIT(mipsr4k.pc); // now unchecked
if (mipsr4k.inDelaySlot) {
MIPSInterpret(op);
if (mipsr4k.inDelaySlot) {