From 2c6026cfe5cb89b9041ee40230bfef754c21c83d Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Wed, 10 Feb 2021 02:53:26 +0100 Subject: Move r15 to reg_a0 (instead of reg_mem) I think this does not make a difference at all in the code, since PC is treated in a special way anyway (reloaded with an immediate when read and treated as an indirect branch when written). However for the sake of completeness I'm undoing what I did. (The comma fix stays :P) --- arm/arm_emit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm/arm_emit.h b/arm/arm_emit.h index e29755e..51987a3 100644 --- a/arm/arm_emit.h +++ b/arm/arm_emit.h @@ -174,7 +174,7 @@ s32 arm_register_allocation[] = reg_x4, /* GBA r12 */ mem_reg, /* GBA r13 */ reg_x5, /* GBA r14 */ - mem_reg, /* GBA r15 */ + reg_a0, /* GBA r15 */ mem_reg, mem_reg, @@ -211,7 +211,7 @@ s32 thumb_register_allocation[] = mem_reg, /* GBA r12 */ mem_reg, /* GBA r13 */ mem_reg, /* GBA r14 */ - mem_reg, /* GBA r15 */ + reg_a0, /* GBA r15 */ mem_reg, mem_reg, -- cgit v1.2.3