summaryrefslogtreecommitdiff
path: root/arm
diff options
context:
space:
mode:
authorDavid Guillen Fandos2021-02-10 02:53:26 +0100
committerDavid Guillen Fandos2021-02-10 02:53:26 +0100
commit2c6026cfe5cb89b9041ee40230bfef754c21c83d (patch)
tree8f189470920261cad5004368613f3e54c2285924 /arm
parent7aaa280b9f41ad4e5d29f6471a0a814888b12485 (diff)
downloadpicogpsp-2c6026cfe5cb89b9041ee40230bfef754c21c83d.tar.gz
picogpsp-2c6026cfe5cb89b9041ee40230bfef754c21c83d.tar.bz2
picogpsp-2c6026cfe5cb89b9041ee40230bfef754c21c83d.zip
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)
Diffstat (limited to 'arm')
-rw-r--r--arm/arm_emit.h4
1 files 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,