CPU/Recompiler: Swap bl{x,r} for b{x,r} on ARM

Not a subroutine call.
This commit is contained in:
Stenzek 2024-12-27 14:31:08 +10:00
parent 2a8cfc7922
commit 2da692b341
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ u32 CPU::CodeCache::EmitASMFunctions(void* code, u32 code_size)
// blr(x9[pc * 2]) (fast_map[pc >> 2])
armAsm->ldr(RARG1, MemOperand(RARG2, RARG1, LSL, 2));
armAsm->blx(RARG1);
armAsm->bx(RARG1);
}
g_compile_or_revalidate_block = armAsm->GetCursorAddress<const void*>();

View File

@ -483,7 +483,7 @@ u32 CPU::CodeCache::EmitASMFunctions(void* code, u32 code_size)
// blr(x9[pc * 2]) (fast_map[pc >> 2])
armAsm->ldr(RXARG1, MemOperand(RXARG2, RXARG1, LSL, 3));
armAsm->blr(RXARG1);
armAsm->br(RXARG1);
}
g_compile_or_revalidate_block = armAsm->GetCursorAddress<const void*>();