summaryrefslogtreecommitdiff
path: root/tb/sim/modeswitch.S
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tb/sim/modeswitch.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/tb/sim/modeswitch.S b/tb/sim/modeswitch.S
index c04f8a3..52908de 100644
--- a/tb/sim/modeswitch.S
+++ b/tb/sim/modeswitch.S
@@ -1,5 +1,6 @@
.global reset
reset:
+ mov r6, lr
mrs r0, cpsr
udf
mrs r2, cpsr
@@ -12,7 +13,7 @@ reset:
nop
msr cpsr_fxc, r0
msr spsr_fxc, r0
- mov pc, lr
+ mov pc, r6
.global undefined
undefined: