fix writeback when rn is also rd in ldr

something *has* to rely on this, as stupid as it seems
This commit is contained in:
Jaklyy 2024-12-08 19:48:46 -05:00
parent 1a1934df00
commit 7a4234dcd8
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ void LoadSingle(ARM* cpu, const u8 rd, const u8 rn, const s32 offset, const u16
{ {
if (rn != 15) [[likely]] // r15 writeback fails on arm9 if (rn != 15) [[likely]] // r15 writeback fails on arm9
{ {
cpu->R[rn] = addr; if (rd != rn) cpu->R[rn] = addr;
} }
else if (cpu->Num == 1) // arm 7 else if (cpu->Num == 1) // arm 7
{ {