Index: gdb/testsuite/gdb.arch/i386-sse.c |
diff --git a/gdb/testsuite/gdb.arch/i386-sse.c b/gdb/testsuite/gdb.arch/i386-sse.c |
index 649b097f4730d742e5d6cdbfbd1e30f1629699ea..8617c8ad36c91c86e10e94a84c9b82311c868f9a 100644 |
--- a/gdb/testsuite/gdb.arch/i386-sse.c |
+++ b/gdb/testsuite/gdb.arch/i386-sse.c |
@@ -1,6 +1,6 @@ |
/* Test program for SSE registers. |
- Copyright 2004, 2007-2012 Free Software Foundation, Inc. |
+ Copyright 2004-2013 Free Software Foundation, Inc. |
This file is part of GDB. |
@@ -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; |