summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/CPUDetect.cpp
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2008-08-25 10:21:19 +0000
committerMaarten ter Huurne <maarten@treewalker.org>2008-08-25 10:21:19 +0000
commit1a2e350158db7c60922f55230cde593d6a72e966 (patch)
tree1594215632117fd212111392585801b4320a63a0 /Source/Core/Common/Src/CPUDetect.cpp
parent8a06c0fdc74b4b9e159d1d18a67ae66e36cbf8fe (diff)
Declare EAX as input register for CPUID.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@310 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/CPUDetect.cpp')
-rw-r--r--Source/Core/Common/Src/CPUDetect.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/CPUDetect.cpp b/Source/Core/Common/Src/CPUDetect.cpp
index f15b1adba7..09827c3227 100644
--- a/Source/Core/Common/Src/CPUDetect.cpp
+++ b/Source/Core/Common/Src/CPUDetect.cpp
@@ -31,7 +31,9 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
: "=a" (*eax),
"=b" (*ebx),
"=c" (*ecx),
- "=d" (*edx));
+ "=d" (*edx)
+ : "a" (*eax)
+ );
#else
// Note: EBX is reserved on Mac OS X and in PIC on Linux, so it has to be
// restored at the end of the asm block.
@@ -43,7 +45,9 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
: "=a" (*eax),
"=r" (*ebx),
"=c" (*ecx),
- "=d" (*edx));
+ "=d" (*edx)
+ : "a" (*eax)
+ );
#endif
}