diff --git a/valgrind-3.16.1-PPC64BE-lsw.patch b/valgrind-3.16.1-PPC64BE-lsw.patch new file mode 100644 index 0000000..2a1e9c3 --- /dev/null +++ b/valgrind-3.16.1-PPC64BE-lsw.patch @@ -0,0 +1,34 @@ +diff --git a/none/tests/ppc64/ldst_multiple.vgtest b/none/tests/ppc64/ldst_multiple.vgtest +index 87e668e09..22dd46c99 100644 +--- a/none/tests/ppc64/ldst_multiple.vgtest ++++ b/none/tests/ppc64/ldst_multiple.vgtest +@@ -1 +1,2 @@ ++prereq: ../../../tests/is_ppc64_BE + prog: ldst_multiple +--- valgrind-3.16.1/none/tests/ppc64/Makefile.am.orig 2020-10-18 20:43:34.579699246 +0200 ++++ valgrind-3.16.1/none/tests/ppc64/Makefile.am 2020-10-18 20:44:52.950198040 +0200 +@@ -54,17 +54,22 @@ + + check_PROGRAMS = \ + allexec \ +- lsw jm-insns round \ ++ jm-insns round \ + test_isa_2_06_part1 test_isa_2_06_part2 test_isa_2_06_part3 \ + test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5 \ + test_isa_2_07_part1 test_isa_2_07_part2 \ + test_isa_3_0 \ + subnormal_test \ +- test_tm test_touch_tm ldst_multiple data-cache-instructions \ ++ test_tm test_touch_tm data-cache-instructions \ + power6_mf_gpr std_reg_imm \ + twi_tdi tw_td power6_bcmp + + ++# lsw and ldst_multiple compile (and run) only on big endian. ++if VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX ++check_PROGRAMS += lsw ldst_multiple ++endif ++ + AM_CFLAGS += @FLAG_M64@ + AM_CXXFLAGS += @FLAG_M64@ + AM_CCASFLAGS += @FLAG_M64@ diff --git a/valgrind.spec b/valgrind.spec index 63e4cea..064cd45 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -111,6 +111,9 @@ Patch11: valgrind-3.16.1-faccessat2.patch # KDE#427931 gdbserver_tests/nlcontrolc.vgtest hangs on fedora rawhide Patch12: valgrind-3.16.1-gdbserver_nlcontrolc.patch +# KDE#427870 lmw, lswi and related PowerPC insns aren't allowed on ppc64le +Patch13: valgrind-3.16.1-PPC64BE-lsw.patch + BuildRequires: glibc-devel %if %{build_openmpi} @@ -248,6 +251,7 @@ Valgrind User Manual for details. %patch10 -p1 %patch11 -p1 %patch12 -p1 +%patch13 -p1 %build # LTO triggers undefined symbols in valgrind. Valgrind has a --enable-lto @@ -475,6 +479,7 @@ fi * Fri Oct 16 2020 Mark Wielaard - 3.16.1-6 - Add valgrind-3.16.1-faccessat2.patch - Add valgrind-3.16.1-gdbserver_nlcontrolc.patch +- Add valgrind-3.16.1-PPC64BE-lsw.patch * Tue Aug 18 2020 Mark Wielaard - 3.16.1-5 - Update valgrind-3.16.1-epoll.patch