summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/source/misc/cpuid.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/source/misc/cpuid.cxx b/tools/source/misc/cpuid.cxx
index e3ba82dffda5..ee5093ce1892 100644
--- a/tools/source/misc/cpuid.cxx
+++ b/tools/source/misc/cpuid.cxx
@@ -25,11 +25,18 @@ void getCpuId(uint32_t array[4])
__cpuid(reinterpret_cast<int*>(array), 1);
}
#else
+#if (defined(__i386__) || defined(__x86_64__))
#include <cpuid.h>
void getCpuId(uint32_t array[4])
{
__get_cpuid(1, array + 0, array + 1, array + 2, array + 3);
}
+#else
+void getCpuId(uint32_t array[4])
+{
+ array[0] = array[1] = array[2] = array[3] = 0;
+}
+#endif
#endif
}