]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove darwin code that crept into the trunk.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 4 Mar 2009 01:23:04 +0000 (01:23 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 4 Mar 2009 01:23:04 +0000 (01:23 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9314

tests/arch_test.c

index 398cb67e6fe9893e1c2d4ff4402d31b00103158e..feeb67e03c52aa75d8cbceacf35ebdb0ade3cb85 100644 (file)
@@ -92,39 +92,9 @@ static void cpuid ( unsigned int n,
 #endif   // VGP_x86_linux || VGP_amd64_linux
 
 //---------------------------------------------------------------------------
-// {x86,amd64}-darwin (part 1 of 2)
+// {x86,amd64}-linux (part 2 of 2)
 //---------------------------------------------------------------------------
-#if defined(VGP_x86_darwin) || defined(VGP_amd64_darwin)
-static void cpuid ( unsigned int n,
-                    unsigned int* a, unsigned int* b,
-                    unsigned int* c, unsigned int* d )
-{
-   __asm__ __volatile__ (
-       "pushl %%eax\n\t"
-       "pushl %%ebx\n\t"
-       "pushl %%ecx\n\t"
-       "pushl %%edx\n\t"
-       "movl %4, %%eax\n\t"
-       "cpuid\n\t"
-       "movl %%eax,%0\n\t"
-       "movl %%ebx,%1\n\t"
-       "movl %%ecx,%2\n\t"
-       "movl %%edx,%3\n\t"
-       "popl %%edx\n\t"
-       "popl %%ecx\n\t"
-       "popl %%ebx\n\t"
-       "popl %%eax\n\t"
-       : "=m" (*a), "=m" (*b), "=m" (*c), "=m" (*d)
-       : "mr" (n)
-       );
-}
-#endif   // VGP_x86_darwin || VGP_amd64_darwin
-
-//---------------------------------------------------------------------------
-// {x86,amd64}-{linux,darwin} (part 2 of 2)
-//---------------------------------------------------------------------------
-#if defined(VGP_x86_linux)  || defined(VGP_amd64_linux) || \
-    defined(VGP_x86_darwin) || defined(VGP_amd64_darwin)
+#if defined(VGP_x86_linux)  || defined(VGP_amd64_linux)
 static Bool go(char* cpu)
 { 
    unsigned int level = 0, cmask = 0, dmask = 0, a, b, c, d;
@@ -182,8 +152,7 @@ static Bool go(char* cpu)
    }
    return False;
 }
-#endif   // VGP_x86_linux  || VGP_amd64_linux ||
-         // VGP_x86_darwin || VGP_amd64_darwin
+#endif   // VGP_x86_linux  || VGP_amd64_linux
 
 
 //---------------------------------------------------------------------------