Skip to content

Commit

Permalink
CPU/Recompiler: Swap bl{x,r} for b{x,r} on ARM
Browse files Browse the repository at this point in the history
Not a subroutine call.
  • Loading branch information
stenzek committed Dec 27, 2024
1 parent 2a8cfc7 commit 2da692b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/cpu_recompiler_arm32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*>();
Expand Down
2 changes: 1 addition & 1 deletion src/core/cpu_recompiler_arm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*>();
Expand Down

0 comments on commit 2da692b

Please sign in to comment.