|
From: Carl L. <ca...@so...> - 2020-09-23 00:18:27
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=baf60c0f06261a03350fde40350560bc21681687 commit baf60c0f06261a03350fde40350560bc21681687 Author: Carl Love <ca...@us...> Date: Tue Sep 22 18:57:14 2020 -0500 Fix common isa 3.1 test code The code in test_isa_3_1_common.c should only be included if ISA 3.1 support exists. Diff: --- none/tests/ppc64/test_isa_3_1_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/none/tests/ppc64/test_isa_3_1_common.c b/none/tests/ppc64/test_isa_3_1_common.c index 585fd0c90f..58f2bdcde5 100644 --- a/none/tests/ppc64/test_isa_3_1_common.c +++ b/none/tests/ppc64/test_isa_3_1_common.c @@ -18,6 +18,8 @@ The GNU General Public License is contained in the file COPYING. */ +#ifdef HAS_ISA_3_1 + #include <stdbool.h> #include <stdio.h> #include <stdlib.h> @@ -2186,3 +2188,4 @@ unsigned long get_vsrhd_vs28 () { unsigned long get_vsrhd_vs29 () { __asm__ __volatile__ ("mfvsrd %0, 29":"=r" (vsrd)); return vsrd; } +#endif |