From: Florian Krohm Date: Wed, 19 Nov 2025 13:27:51 +0000 (+0000) Subject: s390: Set min. required machine model to z196. (BZ 509562) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b640fa64b899af41038c24d2da5989dd6eaa9015;p=thirdparty%2Fvalgrind.git s390: Set min. required machine model to z196. (BZ 509562) Bail out if machine is too old. This is the 1st installment of a series of patches raising the min. required machine model to z196. Part of fixing https://bugs.kde.org/show_bug.cgi?id=509562 --- diff --git a/README.s390 b/README.s390 index d2236d29f..3ff9bc64a 100644 --- a/README.s390 +++ b/README.s390 @@ -2,9 +2,7 @@ Requirements ------------ - You need GCC 3.4 or later to compile the s390 port. -- To run valgrind a z10 machine or any later model is recommended. - Older machine models down to and including z990 may work but have - not been tested extensively. +- Valgrind requires a machine not older than z196 to run. Limitations diff --git a/coregrind/m_machine.c b/coregrind/m_machine.c index 9c19b30eb..1bb6cd120 100644 --- a/coregrind/m_machine.c +++ b/coregrind/m_machine.c @@ -1541,6 +1541,12 @@ Bool VG_(machine_get_hwcaps)( void ) identification yet. Keeping fingers crossed. */ model = VG_(get_machine_model)(); + if (model < VEX_S390X_MODEL_Z196) { + VG_(message)(Vg_FailMsg, "Your machine is too old. " + "You need at least a z196 to run valgrind.\n"); + VG_(exit)(1); + } + /* Unblock SIGILL and stash away the old action for that signal */ VG_(sigemptyset)(&tmp_set); VG_(sigaddset)(&tmp_set, VKI_SIGILL); diff --git a/coregrind/m_main.c b/coregrind/m_main.c index e1bfae2b5..ce8a7ae6a 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1530,7 +1530,7 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp ) VG_(printf)(" * ARM (armv7)\n"); VG_(printf)(" * MIPS (mips32 and above; mips64 and above)\n"); VG_(printf)(" * PowerPC (most; ppc405 and above)\n"); - VG_(printf)(" * System z (64bit only - s390x; z990 and above)\n"); + VG_(printf)(" * System z (64bit only - s390x; z196 and above)\n"); VG_(printf)("\n"); VG_(exit)(1); }