mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-16 14:30:34 +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 X86_ASSEMBLY
|
||||||
#define UNALIGNED_PROFITABLE
|
#define UNALIGNED_PROFITABLE
|
||||||
#define OPTIMIZED_FLAGS
|
#define OPTIMIZED_FLAGS
|
||||||
#define ASM_SYM_FOR_FUNC(a) __asm__(a)
|
#define ASM_SYM(a) __asm__(a)
|
||||||
#define REGPARAM __attribute__((regparm(3)))
|
#define REGPARAM __attribute__((regparm(3)))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
@ -122,7 +122,7 @@ static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;}
|
|||||||
#undef X86_ASSEMBLY
|
#undef X86_ASSEMBLY
|
||||||
#define UNALIGNED_PROFITABLE
|
#define UNALIGNED_PROFITABLE
|
||||||
#undef OPTIMIZED_FLAGS
|
#undef OPTIMIZED_FLAGS
|
||||||
#define ASM_SYM_FOR_FUNC(a)
|
#define ASM_SYM(a)
|
||||||
#define REGPARAM
|
#define REGPARAM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -493,9 +493,9 @@ static inline uae_u32 do_byteswap_16(uae_u32 v)
|
|||||||
#define write_log printf
|
#define write_log printf
|
||||||
|
|
||||||
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
|
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
|
||||||
#define ASM_SYM_FOR_FUNC(a) __asm__(a)
|
#define ASM_SYM(a) __asm__(a)
|
||||||
#else
|
#else
|
||||||
#define ASM_SYM_FOR_FUNC(a)
|
#define ASM_SYM(a)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef REGPARAM
|
#ifndef REGPARAM
|
||||||
|
@ -297,9 +297,9 @@ static inline uae_u32 do_byteswap_16_g(uae_u32 v)
|
|||||||
#define ATTRIBUTE_PACKED __attribute__((packed))
|
#define ATTRIBUTE_PACKED __attribute__((packed))
|
||||||
|
|
||||||
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
|
#if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
|
||||||
#define ASM_SYM_FOR_FUNC(a) __asm__(a)
|
#define ASM_SYM(a) __asm__(a)
|
||||||
#else
|
#else
|
||||||
#define ASM_SYM_FOR_FUNC(a)
|
#define ASM_SYM(a)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef REGPARAM
|
#ifndef REGPARAM
|
||||||
|
@ -59,7 +59,7 @@ struct flag_struct {
|
|||||||
|
|
||||||
#define COPY_CARRY (regflags.x = regflags.cznv)
|
#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)
|
static __inline__ int cctrue(int cc)
|
||||||
{
|
{
|
||||||
@ -202,7 +202,7 @@ struct flag_struct {
|
|||||||
|
|
||||||
#define COPY_CARRY (regflags.x = (regflags.cznv)>>8)
|
#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)
|
static __inline__ int cctrue(int cc)
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,7 @@ struct cputbl {
|
|||||||
uae_u16 opcode;
|
uae_u16 opcode;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern cpuop_func *cpufunctbl[65536] ASM_SYM_FOR_FUNC ("cpufunctbl");
|
extern cpuop_func *cpufunctbl[65536] ASM_SYM("cpufunctbl");
|
||||||
|
|
||||||
#if USE_JIT
|
#if USE_JIT
|
||||||
typedef void compop_func (uae_u32) REGPARAM;
|
typedef void compop_func (uae_u32) REGPARAM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user