mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-07 16:54:28 +00:00
fix build on 32-bit platforms
This commit is contained in:
parent
a4a6233dab
commit
62f9a4bbba
@ -31,14 +31,9 @@ register basic_cpu *CPU asm(REG_CPU);
|
||||
#else
|
||||
#define CPU ((basic_cpu *)CPUPARAM)
|
||||
#endif
|
||||
#if SIZEOF_VOID_P == 8
|
||||
#define DYNGEN_DEFINE_GLOBAL_REGISTER(REG) \
|
||||
register uintptr reg_##REG asm(REG_##REG); \
|
||||
register uint32 REG asm(REG_##REG)
|
||||
#else
|
||||
#define DYNGEN_DEFINE_GLOBAL_REGISTER(REG) \
|
||||
register uint32 REG asm(REG_##REG)
|
||||
#endif
|
||||
DYNGEN_DEFINE_GLOBAL_REGISTER(A0);
|
||||
DYNGEN_DEFINE_GLOBAL_REGISTER(T0);
|
||||
DYNGEN_DEFINE_GLOBAL_REGISTER(T1);
|
||||
|
@ -33,14 +33,9 @@ register struct powerpc_cpu *CPU asm(REG_CPU);
|
||||
#else
|
||||
#define CPU ((powerpc_cpu *)CPUPARAM)
|
||||
#endif
|
||||
#if SIZEOF_VOID_P == 8
|
||||
#define DYNGEN_DEFINE_GLOBAL_REGISTER(REG) \
|
||||
register uintptr reg_##REG asm(REG_##REG); \
|
||||
register uint32 REG asm(REG_##REG)
|
||||
#else
|
||||
#define DYNGEN_DEFINE_GLOBAL_REGISTER(REG) \
|
||||
register uint32 REG asm(REG_##REG)
|
||||
#endif
|
||||
DYNGEN_DEFINE_GLOBAL_REGISTER(A0);
|
||||
DYNGEN_DEFINE_GLOBAL_REGISTER(T0);
|
||||
DYNGEN_DEFINE_GLOBAL_REGISTER(T1);
|
||||
|
Loading…
Reference in New Issue
Block a user