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
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
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);
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);
}