summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tb/sim/strex.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/tb/sim/strex.S b/tb/sim/strex.S
index 5ea2b33..575a839 100644
--- a/tb/sim/strex.S
+++ b/tb/sim/strex.S
@@ -6,6 +6,9 @@ reset:
str r1, [r0]
mvn r1, r1
str r1, [r0, #4]
+ mov r12, lr
+ swi #0
+ mov lr, r12
strex r2, r0, [r0] @ Debe fallar
ldrex r3, [r0]
add r0, r0, #4
@@ -14,3 +17,7 @@ reset:
sub r0, r0, #4
strex r6, r4, [r0] @ Debe servir
mov pc, lr
+
+.global swi
+swi:
+ movs pc, lr