mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-07-05 09:28:57 +00:00
fix inline asm for gcc4
This commit is contained in:
parent
57169c7923
commit
1853c38130
@ -350,7 +350,8 @@ void OPPROTO impl_##NAME(void) \
|
||||
asm volatile ("." #NAME ":"); \
|
||||
asm volatile (ASM_SIZE(NAME)); \
|
||||
} \
|
||||
void OPPROTO helper_##NAME(void) __attribute__((weak, alias(#NAME)));
|
||||
asm(".weak " #NAME); \
|
||||
asm(".set helper_" #NAME "," #NAME);
|
||||
#else
|
||||
#define DEFINE_OP(NAME, CODE) \
|
||||
void OPPROTO NAME(void) \
|
||||
|
@ -601,7 +601,7 @@ void OPPROTO op_spcflags_clear(void)
|
||||
#ifdef DYNGEN_FAST_DISPATCH
|
||||
#if defined(__x86_64__)
|
||||
#define FAST_COMPARE_SPECFLAGS_DISPATCH(SPCFLAGS, TARGET) \
|
||||
asm volatile ("test %0,%0 ; jz " #TARGET : "+r" (SPCFLAGS))
|
||||
asm volatile ("test %0,%0 ; jz " #TARGET : : "r" (SPCFLAGS))
|
||||
#endif
|
||||
#ifndef FAST_COMPARE_SPECFLAGS_DISPATCH
|
||||
#define FAST_COMPARE_SPECFLAGS_DISPATCH(SPCFLAGS, TARGET) \
|
||||
|
Loading…
Reference in New Issue
Block a user