From: Tom Hughes Date: Sat, 2 Apr 2005 17:01:52 +0000 (+0000) Subject: Assert that cpuid is available - this is just done to force the X-Git-Tag: svn/VALGRIND_3_0_0~813 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ba2c09188eea7672ffe23e3096af7cb3c65b5d6;p=thirdparty%2Fvalgrind.git Assert that cpuid is available - this is just done to force the code from cpuid.S to be pulled in so that tools can use it. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3505 --- diff --git a/coregrind/amd64/state.c b/coregrind/amd64/state.c index 5c8a447bac..31c54774e5 100644 --- a/coregrind/amd64/state.c +++ b/coregrind/amd64/state.c @@ -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;