mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
- again CPUID :°D
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7101 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
d373258517
commit
05ef2c1337
@ -39,10 +39,10 @@ static inline void do_cpuid(unsigned int *eax, unsigned int *ebx,
|
|||||||
// Note: EBX is reserved on Mac OS X and in PIC on Linux, so it has to
|
// Note: EBX is reserved on Mac OS X and in PIC on Linux, so it has to
|
||||||
// restored at the end of the asm block.
|
// restored at the end of the asm block.
|
||||||
__asm__(
|
__asm__(
|
||||||
"pushl %%rbx;"
|
"push %%rbx;"
|
||||||
"cpuid;"
|
"cpuid;"
|
||||||
"movl %%rbx,%1;"
|
"movl %%rbx,%1;"
|
||||||
"popl %%rbx;"
|
"pop %%rbx;"
|
||||||
: "=a" (*eax),
|
: "=a" (*eax),
|
||||||
"=r" (*ebx),
|
"=r" (*ebx),
|
||||||
"=c" (*ecx),
|
"=c" (*ecx),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user