From 137ca5cefebf6a25ac2ee39c7d1ec367737b6ae6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 1 Nov 2012 07:57:39 +0100 Subject: [PATCH] (Linux) Try to log processor features --- performance/performance_linux.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/performance/performance_linux.c b/performance/performance_linux.c index 9d711410e3..975e60a9d5 100644 --- a/performance/performance_linux.c +++ b/performance/performance_linux.c @@ -466,13 +466,23 @@ static void rarch_perf_init_cpu(void) x86_cpuid(1, regs); if ((regs[2] & (1 << 9)) != 0) + { + RARCH_LOG("CPU Feature supported: sse3.\n"); g_cpuFeatures |= CPU_X86_FEATURE_SSE3; + } + if ((regs[2] & (1 << 23)) != 0) + { + RARCH_LOG("CPU Feature supported: popcnt.\n"); g_cpuFeatures |= CPU_X86_FEATURE_POPCNT; + } if (vendorIsIntel && (regs[2] & (1 << 22)) != 0) + { + RARCH_LOG("CPU Feature supported: movbe.\n"); g_cpuFeatures |= CPU_X86_FEATURE_MOVBE; + } #endif #ifdef _MIPS_ARCH