aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/lm32/crt.S
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2014-04-22 20:18:43 +0200
committerMichael Walle <michael@walle.cc>2014-05-24 19:42:29 +0200
commit4e7d30a22a46b6bb5551725db781c2d94db2d5f8 (patch)
tree2b07f867132bdeabd3f01102f91b09b71c1c12f5 /tests/tcg/lm32/crt.S
parentf7bbcfb5c303a07322f1e0f258a936a720183169 (diff)
test: lm32: use semihosting for testing
Instead of the lm32-sys device, use semihosting to print to the host console and exit the test. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'tests/tcg/lm32/crt.S')
-rw-r--r--tests/tcg/lm32/crt.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcg/lm32/crt.S b/tests/tcg/lm32/crt.S
index 5f9cfd95d3..fc437a3de1 100644
--- a/tests/tcg/lm32/crt.S
+++ b/tests/tcg/lm32/crt.S
@@ -8,9 +8,9 @@ _reset_handler:
ori r1, r1, lo(_start)
wcsr eba, r1
wcsr deba, r1
+ mvhi sp, hi(_fstack)
+ ori sp, sp, lo(_fstack)
bi _main
- nop
- nop
_breakpoint_handler:
ori r25, r25, 1