From 8ab72fb4b07820b1488020e5dfb3da96efb37c69 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 17 May 2015 01:06:26 +0200 Subject: [PATCH] tools: Limit CPUID check to IA platforms --- tools/test-runner.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test-runner.c b/tools/test-runner.c index 744dd176e..0baf9d5b5 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -219,12 +219,14 @@ static char *const qemu_envp[] = { static void check_virtualization(void) { +#if defined(__GNUC__) && (defined(__i386__) || defined(__amd64__)) uint32_t ecx; __asm__ __volatile__("cpuid" : "=c" (ecx) : "a" (1) : "memory"); if (!!(ecx & (1 << 5))) printf("Found support for Virtual Machine eXtensions\n"); +#endif } static void start_qemu(void) -- 2.47.3