From 2da692b341b025f119773ec4c7167525156a9b07 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 27 Dec 2024 14:31:08 +1000 Subject: [PATCH] CPU/Recompiler: Swap bl{x,r} for b{x,r} on ARM Not a subroutine call. --- src/core/cpu_recompiler_arm32.cpp | 2 +- src/core/cpu_recompiler_arm64.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/cpu_recompiler_arm32.cpp b/src/core/cpu_recompiler_arm32.cpp index 1748fb631e..e6b6935cba 100644 --- a/src/core/cpu_recompiler_arm32.cpp +++ b/src/core/cpu_recompiler_arm32.cpp @@ -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(); diff --git a/src/core/cpu_recompiler_arm64.cpp b/src/core/cpu_recompiler_arm64.cpp index a50705b381..3f23402b8b 100644 --- a/src/core/cpu_recompiler_arm64.cpp +++ b/src/core/cpu_recompiler_arm64.cpp @@ -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();