]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Assert that cpuid is available - this is just done to force the
authorTom Hughes <tom@compton.nu>
Sat, 2 Apr 2005 17:01:52 +0000 (17:01 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 2 Apr 2005 17:01:52 +0000 (17:01 +0000)
code from cpuid.S to be pulled in so that tools can use it.

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

coregrind/amd64/state.c

index 5c8a447bacb44637c1b6010ad39c732716b02a58..31c54774e54debae4545c126997b300ab3e80ae3 100644 (file)
@@ -45,6 +45,7 @@
 Bool VGA_(getArchAndSubArch)( /*OUT*/VexArch*    vex_arch, 
                               /*OUT*/VexSubArch* vex_subarch )
 {
+   vg_assert(VG_(has_cpuid)());
    *vex_arch = VexArchAMD64;
    *vex_subarch = VexSubArch_NONE;
    return True;