x86-model: Make it build on amd64.
[misc] / x86-model.c
index cb90fb3..05c47c6 100644 (file)
@@ -32,7 +32,7 @@
 #include <mLib/quis.h>
 #include <mLib/report.h>
 
-#if !defined(__GNUC__) || !defined(__i386__)
+#if !defined(__GNUC__) || (!defined(__i386__) && !defined(__amd64__))
 #  error "This isn't going to work."
 #endif
 
@@ -44,6 +44,7 @@ struct cpuid { unsigned eax, ebx, ecx, edx; };
 
 static inline void cpuid(unsigned leaf, struct cpuid *c)
 {
+
   __asm__ ("cpuid"
           : "=a" (c->eax),
             "=b" (c->ebx),