From af9bfaed9cfd9b0285baf74afcc36484a26b10af Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 14 Jun 2014 00:55:02 +0200 Subject: [PATCH] Attempt fix for cpuid on x86 Sign extension would be bad. (couldn't test it right now, adb driver issues :/) --- Common/CPUDetect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/CPUDetect.cpp b/Common/CPUDetect.cpp index a7aa7fc09e..cfbb099965 100644 --- a/Common/CPUDetect.cpp +++ b/Common/CPUDetect.cpp @@ -45,7 +45,7 @@ #include #elif !defined(MIPS) -void __cpuidex(int regs[4], int cpuid_leaf, int ecxval) { +void __cpuidex(u32 regs[4], u32 cpuid_leaf, u32 ecxval) { #ifdef ANDROID // Use the /dev/cpu/%i/cpuid interface int f = open("/dev/cpu/0/cpuid", O_RDONLY);