]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make the CPUID helper really do cpuid, so that what is returned
authorJulian Seward <jseward@acm.org>
Wed, 18 Jun 2003 23:30:14 +0000 (23:30 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 18 Jun 2003 23:30:14 +0000 (23:30 +0000)
depends on the host CPU.  We no longer claim to be Werner Trobin's
P54C or any more recent variant thereof :-)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1704

coregrind/vg_helpers.S

index 9c34e054b7c891776cf58c3f147ea59d40b85206..6c1e40c09d3034dc8e750c8d39d3cb2890a45728 100644 (file)
@@ -133,15 +133,16 @@ VG_(helper_CPUID):
        pushl   %ecx
        pushl   %edx
        movl    32(%esp), %eax
-/*
+
        cpuid
-*/
+
 /*
         xor     %eax,%eax
         xor     %ebx,%ebx
         xor     %ecx,%ecx
         xor     %edx,%edx
 */
+/*
        cmpl    $0, %eax
        jz      cpuid__0
        movl    $0x52b, %eax
@@ -155,7 +156,7 @@ cpuid__0:
        movl    $0x6c65746e, %ecx
        movl    $0x49656e69, %edx
 cpuid__99:
-               
+*/     
        movl    %edx, 20(%esp)
        movl    %ecx, 24(%esp)
        movl    %ebx, 28(%esp)