mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
target-xtensa: improve unit tests debugging
- add testcase announcement; - add global symbols for individual tests; - add host-debug-* makefile target. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
16c1deae21
commit
7d6b9f0a38
@ -72,5 +72,8 @@ run-test_fail.tst: test_fail.tst
|
||||
debug-%.tst: %.tst
|
||||
$(SIM) $(SIMDEBUG) $(SIMFLAGS) ./$<
|
||||
|
||||
host-debug-%.tst: %.tst
|
||||
gdb --args $(SIM) $(SIMFLAGS) ./$<
|
||||
|
||||
clean:
|
||||
$(RM) -fr $(TESTCASES) $(CRT)
|
||||
|
@ -29,7 +29,24 @@ main:
|
||||
exit
|
||||
.endm
|
||||
|
||||
.macro print text
|
||||
.data
|
||||
97: .ascii "\text\n"
|
||||
98:
|
||||
.align 4
|
||||
.text
|
||||
movi a2, 4
|
||||
movi a3, 2
|
||||
movi a4, 97b
|
||||
movi a5, 98b
|
||||
sub a5, a5, a4
|
||||
simcall
|
||||
.endm
|
||||
|
||||
.macro test name
|
||||
//print test_\name
|
||||
test_\name:
|
||||
.global test_\name
|
||||
.endm
|
||||
|
||||
.macro test_end
|
||||
|
Loading…
Reference in New Issue
Block a user