|
From: <sv...@va...> - 2006-01-02 16:24:07
|
Author: sewardj
Date: 2006-01-02 16:24:03 +0000 (Mon, 02 Jan 2006)
New Revision: 5472
Log:
Don't confuse ppc32 and ppc64.
Modified:
trunk/tests/cputest.c
Modified: trunk/tests/cputest.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/tests/cputest.c 2006-01-02 16:23:29 UTC (rev 5471)
+++ trunk/tests/cputest.c 2006-01-02 16:24:03 UTC (rev 5472)
@@ -17,11 +17,12 @@
char* all_archs[] =3D {
"amd64",
"ppc32",
+ "ppc64",
"x86",
NULL
};
=20
-#ifdef __powerpc__
+#if defined(__powerpc__) && !defined(__powerpc64__)
static Bool go(char* cpu)
{
if ( strcmp( cpu, "ppc32" ) =3D=3D 0 )
@@ -29,8 +30,18 @@
else=20
return False;
}
-#endif // __powerpc__
+#endif // __powerpc__ (32)
=20
+#if defined(__powerpc__) && defined(__powerpc64__)
+static Bool go(char* cpu)
+{
+ if ( strcmp( cpu, "ppc64" ) =3D=3D 0 )
+ return True;
+ else=20
+ return False;
+}
+#endif // __powerpc__ (64)
+
#if defined(__i386__) || defined(__x86_64__)
static void cpuid ( unsigned int n,
unsigned int* a, unsigned int* b,
|