mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
tests/tcg/xtensa: allow testing big-endian cores
Don't disable all big-endian tests, instead check whether $(CORE) is supported by the configured $(QEMU) and enable tests if it is. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
5161dba859
commit
51139fb3e7
3 changed files with 8 additions and 2 deletions
|
@ -371,6 +371,7 @@ S: Maintained
|
||||||
F: target/xtensa/
|
F: target/xtensa/
|
||||||
F: hw/xtensa/
|
F: hw/xtensa/
|
||||||
F: tests/tcg/xtensa/
|
F: tests/tcg/xtensa/
|
||||||
|
F: tests/tcg/xtensaeb/
|
||||||
F: disas/xtensa.c
|
F: disas/xtensa.c
|
||||||
F: include/hw/xtensa/xtensa-isa.h
|
F: include/hw/xtensa/xtensa-isa.h
|
||||||
F: configs/devices/xtensa*/default.mak
|
F: configs/devices/xtensa*/default.mak
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
# Xtensa softmmu tests
|
# Xtensa softmmu tests
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(TARGET_BIG_ENDIAN),y)
|
CORE=dc232b
|
||||||
|
ifneq ($(shell $(QEMU) -cpu help | grep -w $(CORE)),)
|
||||||
|
|
||||||
XTENSA_SRC = $(SRC_PATH)/tests/tcg/xtensa
|
XTENSA_SRC = $(SRC_PATH)/tests/tcg/xtensa
|
||||||
XTENSA_ALL = $(filter-out $(XTENSA_SRC)/linker.ld.S,$(wildcard $(XTENSA_SRC)/*.S))
|
XTENSA_ALL = $(filter-out $(XTENSA_SRC)/linker.ld.S,$(wildcard $(XTENSA_SRC)/*.S))
|
||||||
|
@ -15,7 +16,6 @@ XTENSA_USABLE_TESTS = $(filter-out $(XTENSA_BROKEN_TESTS), $(XTENSA_TESTS))
|
||||||
TESTS += $(XTENSA_USABLE_TESTS)
|
TESTS += $(XTENSA_USABLE_TESTS)
|
||||||
VPATH += $(XTENSA_SRC)
|
VPATH += $(XTENSA_SRC)
|
||||||
|
|
||||||
CORE=dc232b
|
|
||||||
QEMU_OPTS+=-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel
|
QEMU_OPTS+=-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel
|
||||||
|
|
||||||
INCLUDE_DIRS = $(SRC_PATH)/target/xtensa/core-$(CORE)
|
INCLUDE_DIRS = $(SRC_PATH)/target/xtensa/core-$(CORE)
|
||||||
|
|
5
tests/tcg/xtensaeb/Makefile.softmmu-target
Normal file
5
tests/tcg/xtensaeb/Makefile.softmmu-target
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#
|
||||||
|
# Xtensa softmmu tests
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(SRC_PATH)/tests/tcg/xtensa/Makefile.softmmu-target
|
Loading…
Add table
Add a link
Reference in a new issue