Skip to contentSkip to conversation

tests/tcg/s390x: Allow specifying extra QEMU options on the command line

PATCH In review Ilya Leoshkevich 2 participants 2 messages May 22, 2024 – May 29, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/tcg/s390x: Allow specifying extra QEMU options on the command line

The use case for this is make check-tcg EXTFLAGS="-accel kvm", which allows validating the system TCG testcases on real hardware. EXTFLAGS name is borrowed from tests/tcg/xtensa/Makefile.softmmu-target. While at it, use += instead of = in order to be consistent with the other architectures.

---
 tests/tcg/s390x/Makefile.softmmu-target | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/s390x/Makefile.softmmu-target +1 -1
index 1078655dd31..4ca0dac7257 100644
@@ -1,6 +1,6 @@
 S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
 VPATH+=$(S390X_SRC)
-QEMU_OPTS=-action panic=exit-failure -nographic -kernel
+QEMU_OPTS+=-action panic=exit-failure -nographic $(EXTFLAGS) -kernel
 LINK_SCRIPT=$(S390X_SRC)/softmmu.ld
 CFLAGS+=-ggdb -O0
 LDFLAGS=-nostdlib -static
Signature · 1 line
2.45.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Ilya Leoshkevich

The use case for this is make check-tcg EXTFLAGS="-accel kvm", which allows validating the system TCG testcases on real hardware. EXTFLAGS name is borrowed from tests/tcg/xtensa/Makefile.softmmu-target. While at it, use += instead of = in order to be consistent with the other architectures.

---
  tests/tcg/s390x/Makefile.softmmu-target | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/tcg/s390x/Makefile.softmmu-target +0 -0
index 1078655dd31..4ca0dac7257 100644

tests/tcg/s390x/Makefile.softmmu-target line 6

Quoted 7 lines
tests/tcg/s390x/Makefile.softmmu-target +1 -1
@@ -1,6 +1,6 @@
  S390X_SRC=$(SRC_PATH)/tests/tcg/s390x
  VPATH+=$(S390X_SRC)
-QEMU_OPTS=-action panic=exit-failure -nographic -kernel
+QEMU_OPTS+=-action panic=exit-failure -nographic $(EXTFLAGS) -kernel
  LINK_SCRIPT=$(S390X_SRC)/softmmu.ld
  CFLAGS+=-ggdb -O0
  LDFLAGS=-nostdlib -static

(sorry, I missed this for my pull request today ... I'll queue this patch for my next one)