Don't confuse ppc32 and ppc64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5472 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/cputest.c b/tests/cputest.c
index c724b3c..41fcdae 100644
--- a/tests/cputest.c
+++ b/tests/cputest.c
@@ -17,11 +17,12 @@
char* all_archs[] = {
"amd64",
"ppc32",
+ "ppc64",
"x86",
NULL
};
-#ifdef __powerpc__
+#if defined(__powerpc__) && !defined(__powerpc64__)
static Bool go(char* cpu)
{
if ( strcmp( cpu, "ppc32" ) == 0 )
@@ -29,7 +30,17 @@
else
return False;
}
-#endif // __powerpc__
+#endif // __powerpc__ (32)
+
+#if defined(__powerpc__) && defined(__powerpc64__)
+static Bool go(char* cpu)
+{
+ if ( strcmp( cpu, "ppc64" ) == 0 )
+ return True;
+ else
+ return False;
+}
+#endif // __powerpc__ (64)
#if defined(__i386__) || defined(__x86_64__)
static void cpuid ( unsigned int n,