mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Declare EAX as input register for CPUID.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@310 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -31,7 +31,9 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
|
|||||||
: "=a" (*eax),
|
: "=a" (*eax),
|
||||||
"=b" (*ebx),
|
"=b" (*ebx),
|
||||||
"=c" (*ecx),
|
"=c" (*ecx),
|
||||||
"=d" (*edx));
|
"=d" (*edx)
|
||||||
|
: "a" (*eax)
|
||||||
|
);
|
||||||
#else
|
#else
|
||||||
// Note: EBX is reserved on Mac OS X and in PIC on Linux, so it has to be
|
// 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.
|
// 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),
|
: "=a" (*eax),
|
||||||
"=r" (*ebx),
|
"=r" (*ebx),
|
||||||
"=c" (*ecx),
|
"=c" (*ecx),
|
||||||
"=d" (*edx));
|
"=d" (*edx)
|
||||||
|
: "a" (*eax)
|
||||||
|
);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user