mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 00:25:27 +00:00
regress: eflags_noset.c should only asm x86 code on x86 platform. fix #764
This commit is contained in:
parent
f4325f8c4e
commit
b12ce92468
|
@ -34,17 +34,20 @@ uint32_t realEflags()
|
|||
"pushf\n\t"
|
||||
"pop %0\n\t"
|
||||
"popf"
|
||||
#else
|
||||
: "=r"(val)
|
||||
: "r"(i)
|
||||
: "%0");
|
||||
#elif defined(__x86_64__)
|
||||
__asm__("pushfq\n\t"
|
||||
"pushq %0\n\t"
|
||||
"popfq\n\t"
|
||||
"pushfq\n\t"
|
||||
"popq %0\n\t"
|
||||
"popfq"
|
||||
#endif
|
||||
: "=r"(val)
|
||||
: "r"(i)
|
||||
: "%0");
|
||||
#endif
|
||||
|
||||
printf("Real system eflags: 0x%08"PRIX3264"\n", val);
|
||||
|
||||
|
|
Loading…
Reference in a new issue