diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-10-21 06:50:02 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-10-21 06:50:02 -0500 |
commit | d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31 (patch) | |
tree | 2cedc57d81e075f9d72dfff125bd4df13947a424 /user/valgrind/ppc32.patch | |
parent | 1cc4415e5d2f5b28e7b85c7e531b46a0df7f6ef0 (diff) | |
download | packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.tar.gz packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.tar.bz2 packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.tar.xz packages-d39a0ce9dcbaf7928a37dbe5f875249ad34b0f31.zip |
user/valgrind: Allow exec on ppc32 + ISA 3.0
This will crash wildly if you actually try to *use* ISA 3.0 instructions
in the Valgrind core. But if you don't, it works fine, and it's the only
way to do Valgrind on a Power9 while running in 32-bit mode.
Diffstat (limited to 'user/valgrind/ppc32.patch')
-rw-r--r-- | user/valgrind/ppc32.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/user/valgrind/ppc32.patch b/user/valgrind/ppc32.patch new file mode 100644 index 000000000..093eae132 --- /dev/null +++ b/user/valgrind/ppc32.patch @@ -0,0 +1,15 @@ +--- valgrind-3.21.0/VEX/priv/main_main.c.old 2023-01-07 14:48:48.000000000 +0000 ++++ valgrind-3.21.0/VEX/priv/main_main.c 2024-10-01 21:53:47.879017945 +0000 +@@ -2047,10 +2047,10 @@ + } + + /* ISA 3.0 not supported on 32-bit machines */ +- if ((hwcaps & VEX_HWCAPS_PPC32_ISA3_0) != 0) { ++ /*if ((hwcaps & VEX_HWCAPS_PPC32_ISA3_0) != 0) { + invalid_hwcaps(arch, hwcaps, + "ISA 3.0 not supported in 32-bit mode \n"); +- } ++ }*/ + return; + } + |