* [PATCH] tests/tcg/xtensa: allow testing big-endian cores
@ 2023-03-15 2:34 Max Filippov
0 siblings, 0 replies; 4+ messages in thread
From: Max Filippov @ 2023-03-15 2:34 UTC (permalink / raw)
To: qemu-devel; +Cc: Max Filippov, Philippe Mathieu-Daudé
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>
---
MAINTAINERS | 1 +
tests/tcg/xtensa/Makefile.softmmu-target | 4 ++--
tests/tcg/xtensaeb/Makefile.softmmu-target | 5 +++++
3 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 tests/tcg/xtensaeb/Makefile.softmmu-target
diff --git a/MAINTAINERS b/MAINTAINERS
index d51ddee0b94b..94faa804610e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -371,6 +371,7 @@ S: Maintained
F: target/xtensa/
F: hw/xtensa/
F: tests/tcg/xtensa/
+F: tests/tcg/xtensaeb/
F: disas/xtensa.c
F: include/hw/xtensa/xtensa-isa.h
F: configs/devices/xtensa*/default.mak
diff --git a/tests/tcg/xtensa/Makefile.softmmu-target b/tests/tcg/xtensa/Makefile.softmmu-target
index 948c0e6506bd..ba6cd9fde3fe 100644
--- a/tests/tcg/xtensa/Makefile.softmmu-target
+++ b/tests/tcg/xtensa/Makefile.softmmu-target
@@ -2,7 +2,8 @@
# 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_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)
VPATH += $(XTENSA_SRC)
-CORE=dc232b
QEMU_OPTS+=-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel
INCLUDE_DIRS = $(SRC_PATH)/target/xtensa/core-$(CORE)
diff --git a/tests/tcg/xtensaeb/Makefile.softmmu-target b/tests/tcg/xtensaeb/Makefile.softmmu-target
new file mode 100644
index 000000000000..4204a96d53c0
--- /dev/null
+++ b/tests/tcg/xtensaeb/Makefile.softmmu-target
@@ -0,0 +1,5 @@
+#
+# Xtensa softmmu tests
+#
+
+include $(SRC_PATH)/tests/tcg/xtensa/Makefile.softmmu-target
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] tests/tcg/xtensa: allow testing big-endian cores
@ 2022-03-25 18:23 Max Filippov
2022-03-28 21:58 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 4+ messages in thread
From: Max Filippov @ 2022-03-25 18:23 UTC (permalink / raw)
To: qemu-devel; +Cc: Max Filippov, Alex Bennée
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>
---
MAINTAINERS | 1 +
tests/tcg/xtensa/Makefile.softmmu-target | 4 ++--
tests/tcg/xtensaeb/Makefile.softmmu-target | 5 +++++
3 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 tests/tcg/xtensaeb/Makefile.softmmu-target
diff --git a/MAINTAINERS b/MAINTAINERS
index 9aed5f3e04e4..e16585b073a3 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -347,6 +347,7 @@ S: Maintained
F: target/xtensa/
F: hw/xtensa/
F: tests/tcg/xtensa/
+F: tests/tcg/xtensaeb/
F: disas/xtensa.c
F: include/hw/xtensa/xtensa-isa.h
F: configs/devices/xtensa*/default.mak
diff --git a/tests/tcg/xtensa/Makefile.softmmu-target b/tests/tcg/xtensa/Makefile.softmmu-target
index 9530cac2ad95..f1cf2a6496d2 100644
--- a/tests/tcg/xtensa/Makefile.softmmu-target
+++ b/tests/tcg/xtensa/Makefile.softmmu-target
@@ -2,7 +2,8 @@
# Xtensa softmmu tests
#
-ifneq ($(TARGET_WORDS_BIGENDIAN),y)
+CORE=dc232b
+ifneq ($(shell $(QEMU) -cpu help | grep -w $(CORE)),)
XTENSA_SRC = $(SRC_PATH)/tests/tcg/xtensa
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)
VPATH += $(XTENSA_SRC)
-CORE=dc232b
QEMU_OPTS+=-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel
INCLUDE_DIRS = $(SRC_PATH)/target/xtensa/core-$(CORE)
diff --git a/tests/tcg/xtensaeb/Makefile.softmmu-target b/tests/tcg/xtensaeb/Makefile.softmmu-target
new file mode 100644
index 000000000000..4204a96d53c0
--- /dev/null
+++ b/tests/tcg/xtensaeb/Makefile.softmmu-target
@@ -0,0 +1,5 @@
+#
+# Xtensa softmmu tests
+#
+
+include $(SRC_PATH)/tests/tcg/xtensa/Makefile.softmmu-target
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/tcg/xtensa: allow testing big-endian cores
2022-03-25 18:23 Max Filippov
@ 2022-03-28 21:58 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-03-28 21:58 UTC (permalink / raw)
To: Max Filippov, qemu-devel; +Cc: Thomas Huth, Alex Bennée
On 25/3/22 19:23, Max Filippov wrote:
> 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>
> ---
> MAINTAINERS | 1 +
> tests/tcg/xtensa/Makefile.softmmu-target | 4 ++--
> tests/tcg/xtensaeb/Makefile.softmmu-target | 5 +++++
> 3 files changed, 8 insertions(+), 2 deletions(-)
> create mode 100644 tests/tcg/xtensaeb/Makefile.softmmu-target
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] tests/tcg/xtensa: allow testing big-endian cores
@ 2021-10-12 4:33 Max Filippov
0 siblings, 0 replies; 4+ messages in thread
From: Max Filippov @ 2021-10-12 4:33 UTC (permalink / raw)
To: qemu-devel; +Cc: Max Filippov
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>
---
MAINTAINERS | 1 +
tests/tcg/xtensa/Makefile.softmmu-target | 4 ++--
tests/tcg/xtensaeb/Makefile.softmmu-target | 5 +++++
3 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 tests/tcg/xtensaeb/Makefile.softmmu-target
diff --git a/MAINTAINERS b/MAINTAINERS
index 50435b8d2f50..8b5ed46a5f1c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -343,6 +343,7 @@ S: Maintained
F: target/xtensa/
F: hw/xtensa/
F: tests/tcg/xtensa/
+F: tests/tcg/xtensaeb/
F: disas/xtensa.c
F: include/hw/xtensa/xtensa-isa.h
F: configs/devices/xtensa*/default.mak
diff --git a/tests/tcg/xtensa/Makefile.softmmu-target b/tests/tcg/xtensa/Makefile.softmmu-target
index 9530cac2ad95..f1cf2a6496d2 100644
--- a/tests/tcg/xtensa/Makefile.softmmu-target
+++ b/tests/tcg/xtensa/Makefile.softmmu-target
@@ -2,7 +2,8 @@
# Xtensa softmmu tests
#
-ifneq ($(TARGET_WORDS_BIGENDIAN),y)
+CORE=dc232b
+ifneq ($(shell $(QEMU) -cpu help | grep -w $(CORE)),)
XTENSA_SRC = $(SRC_PATH)/tests/tcg/xtensa
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)
VPATH += $(XTENSA_SRC)
-CORE=dc232b
QEMU_OPTS+=-M sim -cpu $(CORE) -nographic -semihosting -icount 6 $(EXTFLAGS) -kernel
INCLUDE_DIRS = $(SRC_PATH)/target/xtensa/core-$(CORE)
diff --git a/tests/tcg/xtensaeb/Makefile.softmmu-target b/tests/tcg/xtensaeb/Makefile.softmmu-target
new file mode 100644
index 000000000000..4204a96d53c0
--- /dev/null
+++ b/tests/tcg/xtensaeb/Makefile.softmmu-target
@@ -0,0 +1,5 @@
+#
+# Xtensa softmmu tests
+#
+
+include $(SRC_PATH)/tests/tcg/xtensa/Makefile.softmmu-target
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-15 2:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-15 2:34 [PATCH] tests/tcg/xtensa: allow testing big-endian cores Max Filippov
-- strict thread matches above, loose matches on Subject: below --
2022-03-25 18:23 Max Filippov
2022-03-28 21:58 ` Philippe Mathieu-Daudé
2021-10-12 4:33 Max Filippov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).