Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20201101.0' into...
[qemu/ar7.git] / tests / tcg / lm32 / test_scall.S
blob46032f841daf1a913084ecdc16c0472fee3b1050
1 .include "macros.inc"
3 start
5 test_name SCALL_1
6 mvi r1, 1
7 wcsr IE, r1
8 # we are running in a semi hosted environment
9 # therefore we have to set r8 to some unused system
10 # call
11 mvi r8, 0
12 insn:
13 scall
14 check_excp 64
16 test_name SCALL_2
17 mv r3, ea
18 check_r3 insn
20 test_name SCALL_3
21 rcsr r3, IE
22 check_r3 2
24 end