aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Headers/cpuid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Headers/cpuid.h b/lib/Headers/cpuid.h
index 6d58ad9dff..b7fe7542d5 100644
--- a/lib/Headers/cpuid.h
+++ b/lib/Headers/cpuid.h
@@ -21,6 +21,10 @@
*===-----------------------------------------------------------------------===
*/
+#if !(__x86_64__ || __i386__)
+#error this header is for x86 only
+#endif
+
static inline int __get_cpuid (unsigned int level, unsigned int *eax,
unsigned int *ebx, unsigned int *ecx,
unsigned int *edx) {