git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
fdec7fe
)
cpuid instruction clobbers eax/ebx/ecx/edx
author
Gavin Andresen
<gavinandresen@gmail.com>
Sat, 22 Jan 2011 21:04:07 +0000 (16:04 -0500)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Sat, 22 Jan 2011 21:04:07 +0000 (16:04 -0500)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index
d19cbef
..
216e245
100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-3127,7
+3127,7
@@
void CallCPUID(int in, int& aret, int& cret)
"mov %%ecx, %1;" // ecx into c
:"=r"(a),"=r"(c) /* output */
:"r"(in) /* input */
- :"%eax","%ecx" /* clobbered register */
+ :"%eax","%ebx","%ecx","%edx" /* clobbered register */
);
aret = a;
cret = c;