mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
f7bbcfb5c3
commit
4e7d30a22a
5 changed files with 103 additions and 22 deletions
|
@ -5,6 +5,10 @@ start
|
|||
test_name SCALL_1
|
||||
mvi r1, 1
|
||||
wcsr IE, r1
|
||||
# we are running in a semi hosted environment
|
||||
# therefore we have to set r8 to some unused system
|
||||
# call
|
||||
mvi r8, 0
|
||||
insn:
|
||||
scall
|
||||
check_excp 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue