summaryrefslogtreecommitdiff
path: root/emu/Linux
diff options
context:
space:
mode:
Diffstat (limited to 'emu/Linux')
-rw-r--r--emu/Linux/asm-arm.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/emu/Linux/asm-arm.S b/emu/Linux/asm-arm.S
index 1cdac444..d13bcd0e 100644
--- a/emu/Linux/asm-arm.S
+++ b/emu/Linux/asm-arm.S
@@ -126,6 +126,7 @@ _tas:
@ link register save eliminated.
@ lr needed for prologue
mov r3, #1
- swp r0, r3, [r0]
+ mov r1, r0
+ swp r0, r3, [r1]
mov pc, lr
.size _tas, .-_tas