repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tests/vm: add --build-target option
[qemu/ar7.git]
/
tests
/
tcg
/
lm32
/
test_scall.S
blob
46032f841daf1a913084ecdc16c0472fee3b1050
1
.include "macros.inc"
2
3
start
4
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
15
16
test_name SCALL_2
17
mv r3, ea
18
check_r3 insn
19
20
test_name SCALL_3
21
rcsr r3, IE
22
check_r3 2
23
24
end