]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.arch/i386-sse.c
gdb: clean up x86 cpuid implementations
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / i386-sse.c
index d4315275265cc1476de6e150008d9b5bae43a778..8617c8ad36c91c86e10e94a84c9b82311c868f9a 100644 (file)
@@ -51,7 +51,10 @@ v4sf_t data[] =
 int
 have_sse (void)
 {
-  int edx = i386_cpuid ();
+  int edx;
+
+  if (!i386_cpuid (1, NULL, NULL, NULL, &edx))
+    return 0;
 
   if (edx & bit_SSE)
     return 1;