mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
Renamed ASM_SYM_FOR_FUNC to ASM_SYM.
Use ASM_SYM in place of __asm__ in a couple places.
This commit is contained in:
parent
6c8d16ef3a
commit
f05cd77eb4
@ -108,7 +108,7 @@ static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {__asm__ ("rolw $8,%0"
|
||||
#define X86_ASSEMBLY
|
||||
#define UNALIGNED_PROFITABLE
|
||||
#define OPTIMIZED_FLAGS
|
||||
#define ASM_SYM_FOR_FUNC(a) __asm__(a)
|
||||
#define ASM_SYM(a) __asm__(a)
|
||||
#define REGPARAM __attribute__((regparm(3)))
|
||||
|
||||
#else
|
||||
@ -122,7 +122,7 @@ static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;}
|
||||
#undef X86_ASSEMBLY
|
||||
#define UNALIGNED_PROFITABLE
|
||||
#undef OPTIMIZED_FLAGS
|
||||
#define ASM_SYM_FOR_FUNC(a)
|
||||
#define ASM_SYM(a)
|
||||
#define REGPARAM
|
||||
#endif
|
||||
|
||||
|
@ -493,9 +493,9 @@ static inline uae_u32 do_byteswap_16(uae_u32 v)
|
||||
#define write_log printf
|
||||
|
||||
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
|
||||
#define ASM_SYM_FOR_FUNC(a) __asm__(a)
|
||||
#define ASM_SYM(a) __asm__(a)
|
||||
#else
|
||||
#define ASM_SYM_FOR_FUNC(a)
|
||||
#define ASM_SYM(a)
|
||||
#endif
|
||||
|
||||
#ifndef REGPARAM
|
||||
|
@ -297,9 +297,9 @@ static inline uae_u32 do_byteswap_16_g(uae_u32 v)
|
||||
#define ATTRIBUTE_PACKED __attribute__((packed))
|
||||
|
||||
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
|
||||
#define ASM_SYM_FOR_FUNC(a) __asm__(a)
|
||||
#define ASM_SYM(a) __asm__(a)
|
||||
#else
|
||||
#define ASM_SYM_FOR_FUNC(a)
|
||||
#define ASM_SYM(a)
|
||||
#endif
|
||||
|
||||
#ifndef REGPARAM
|
||||
|
@ -59,7 +59,7 @@ struct flag_struct {
|
||||
|
||||
#define COPY_CARRY (regflags.x = regflags.cznv)
|
||||
|
||||
extern struct flag_struct regflags __asm__ ("regflags");
|
||||
extern struct flag_struct regflags ASM_SYM ("regflags");
|
||||
|
||||
static __inline__ int cctrue(int cc)
|
||||
{
|
||||
@ -202,7 +202,7 @@ struct flag_struct {
|
||||
|
||||
#define COPY_CARRY (regflags.x = (regflags.cznv)>>8)
|
||||
|
||||
extern struct flag_struct regflags __asm__ ("regflags");
|
||||
extern struct flag_struct regflags ASM_SYM("regflags");
|
||||
|
||||
static __inline__ int cctrue(int cc)
|
||||
{
|
||||
|
@ -61,7 +61,7 @@ struct cputbl {
|
||||
uae_u16 opcode;
|
||||
};
|
||||
|
||||
extern cpuop_func *cpufunctbl[65536] ASM_SYM_FOR_FUNC ("cpufunctbl");
|
||||
extern cpuop_func *cpufunctbl[65536] ASM_SYM("cpufunctbl");
|
||||
|
||||
#if USE_JIT
|
||||
typedef void compop_func (uae_u32) REGPARAM;
|
||||
|
Loading…
Reference in New Issue
Block a user