]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
buildsys: Stop checking for ESA/390 host
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 19 May 2026 17:12:39 +0000 (19:12 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 5 Jun 2026 10:30:33 +0000 (12:30 +0200)
We still build QEMU tools on 32-bit hosts (see commit
cf634dfcd8f), however no OS supported by QEMU still runs
on ESA/390 (Linux dropped support in release 4.1 in 2015).

Remove the configure check, directly checking for the 64-bit
z/Architecture.

Also per commit 3704993f545 from 2020:

  "we don't support s390, only 64-bit s390x hosts".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260519171240.97420-4-philmd@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
block/file-posix.c
configure
disas/disas-host.c
include/qemu/cacheflush.h
include/qemu/timer.h
util/cacheflush.c

index e49b13d6abb50acbb828dd3288a16f03e44fff3e..5019ddade9b5d1cca2355d670e5e2923cdea0a77 100644 (file)
@@ -79,7 +79,7 @@
 #include <linux/hdreg.h>
 #include <linux/magic.h>
 #include <scsi/sg.h>
-#ifdef __s390__
+#ifdef __s390x__
 #include <asm/dasd.h>
 #endif
 #ifndef FS_NOCOW_FL
index 1ceb4d7ecc427f0d380cc81c3d17cc1d2527d560..d786d3a7c9b4fb96780d83e6b5a37a4ba8031283 100755 (executable)
--- a/configure
+++ b/configure
@@ -399,12 +399,8 @@ elif check_define _ARCH_PPC64 ; then
   else
     cpu="ppc64"
   fi
-elif check_define __s390__ ; then
-  if check_define __s390x__ ; then
-    cpu="s390x"
-  else
-    cpu="s390"
-  fi
+elif check_define __s390x__ ; then
+  cpu="s390x"
 elif check_define __riscv && check_define _LP64 ; then
   cpu="riscv64"
 elif check_define __aarch64__ ; then
@@ -461,10 +457,6 @@ case "$cpu" in
     linux_arch=riscv
     ;;
 
-  s390)
-    linux_arch=s390
-    CPU_CFLAGS="-m31"
-    ;;
   s390x)
     host_arch=s390x
     linux_arch=s390
index 7cf432938e0b499973b410d7c0fe15cb93f7b8b3..d41235250a0a591ccea24ac7bb7748fd5c9b2dd0 100644 (file)
@@ -74,7 +74,7 @@ static void initialize_debug_host(CPUDebug *s)
     s->info.print_insn = print_insn_little_mips;
 #elif defined(__m68k__)
     s->info.print_insn = print_insn_m68k;
-#elif defined(__s390__)
+#elif defined(__s390x__)
     s->info.cap_arch = CS_ARCH_SYSZ;
     s->info.cap_insn_unit = 2;
     s->info.cap_insn_split = 6;
index 8c64b878145856293c962dd8d25500cba59d7c91..0618966ddde0711aaec60d37b460e937a76fe3fc 100644 (file)
@@ -19,7 +19,7 @@
  * mappings of the same physical page(s).
  */
 
-#if defined(__x86_64__) || defined(__s390__)
+#if defined(__x86_64__) || defined(__s390x__)
 
 static inline void flush_idcache_range(uintptr_t rx, uintptr_t rw, size_t len)
 {
index ec03635dd34c13c4e22646fa94e84c2ce53179d5..9a62ac8cded11cc5c538117bda6826d33ff3cc76 100644 (file)
@@ -889,7 +889,7 @@ static inline int64_t cpu_get_host_ticks(void)
     return val;
 }
 
-#elif defined(__s390__)
+#elif defined(__s390x__)
 
 static inline int64_t cpu_get_host_ticks(void)
 {
index 247c4ce298030f7b7c133f85e0d363bd0e86d1c8..a44fb136f7e0af211e9fbbc97b3abdbc640b0316 100644 (file)
@@ -223,7 +223,7 @@ static void __attribute__((constructor)) init_cache_info(void)
  * Architecture (+ OS) specific cache flushing mechanisms.
  */
 
-#if defined(__x86_64__) || defined(__s390__)
+#if defined(__x86_64__) || defined(__s390x__)
 
 /* Caches are coherent and do not require flushing; symbol inline. */