From: Julian Seward Date: Wed, 18 Jun 2003 23:30:14 +0000 (+0000) Subject: Make the CPUID helper really do cpuid, so that what is returned X-Git-Tag: svn/VALGRIND_2_0_0~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94d690352922d75ee4b9426c1007f894124bc818;p=thirdparty%2Fvalgrind.git Make the CPUID helper really do cpuid, so that what is returned 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 --- diff --git a/coregrind/vg_helpers.S b/coregrind/vg_helpers.S index 9c34e054b7..6c1e40c09d 100644 --- a/coregrind/vg_helpers.S +++ b/coregrind/vg_helpers.S @@ -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)