From 1094451235282af6a9daba2b2a460577f82d289c Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 3 Oct 2023 18:56:36 -0600 Subject: tb/sim/strex: test monitor after exception --- tb/sim/strex.S | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3