aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/lm32/Makefile
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/Makefile
parentf7bbcfb5c303a07322f1e0f258a936a720183169 (diff)
downloadqemu-4e7d30a22a46b6bb5551725db781c2d94db2d5f8.zip
qemu-4e7d30a22a46b6bb5551725db781c2d94db2d5f8.tar.gz
qemu-4e7d30a22a46b6bb5551725db781c2d94db2d5f8.tar.bz2
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/Makefile')
-rw-r--r--tests/tcg/lm32/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/tcg/lm32/Makefile b/tests/tcg/lm32/Makefile
index 8e5d405..57e7363 100644
--- a/tests/tcg/lm32/Makefile
+++ b/tests/tcg/lm32/Makefile
@@ -3,7 +3,7 @@
CROSS=lm32-elf-
SIM = qemu-system-lm32
-SIMFLAGS = -M lm32-evr -nographic -device lm32-sys -net none -kernel
+SIMFLAGS = -M lm32-evr -nographic -semihosting -net none -kernel
CC = $(CROSS)gcc
AS = $(CROSS)as
@@ -18,6 +18,7 @@ LDFLAGS = -T$(TSRC_PATH)/linker.ld
ASFLAGS += -Wa,-I,$(TSRC_PATH)/
CRT = crt.o
+HELPER = helper.o
TESTCASES += test_add.tst
TESTCASES += test_addi.tst
TESTCASES += test_and.tst
@@ -91,15 +92,15 @@ all: build
%.o: $(TSRC_PATH)/%.S
$(AS) $(ASFLAGS) -c $< -o $@
-%.tst: %.o $(TSRC_PATH)/macros.inc $(CRT)
- $(LD) $(LDFLAGS) $(NOSTDFLAGS) $(CRT) $< -o $@
+%.tst: %.o $(TSRC_PATH)/macros.inc $(CRT) $(HELPER)
+ $(LD) $(LDFLAGS) $(NOSTDFLAGS) $(CRT) $(HELPER) $< -o $@
-build: $(CRT) $(TESTCASES)
+build: $(TESTCASES)
check: $(TESTCASES:test_%.tst=check_%)
-check_%: test_%.tst $(CRT) $(SYS)
- $(SIM) $(SIMFLAGS) $<
+check_%: test_%.tst
+ @$(SIM) $(SIMFLAGS) $<
clean:
- $(RM) -fr $(TESTCASES) $(CRT)
+ $(RM) -fr $(TESTCASES) $(CRT) $(HELPER)