mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-19 09:30:56 +00:00
Darwin/x86 fixes
This commit is contained in:
parent
77208f85b0
commit
d08df6e659
@ -96,7 +96,11 @@ extern int __op_param1, __op_param2, __op_param3;
|
||||
#endif
|
||||
|
||||
#ifndef REG_CPU
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
static int __op_cpuparam;
|
||||
#else
|
||||
extern int __op_cpuparam;
|
||||
#endif
|
||||
#define CPUPARAM ((long)(&__op_cpuparam))
|
||||
#endif
|
||||
|
||||
@ -126,6 +130,9 @@ extern int __op_jmp0, __op_jmp1;
|
||||
#if defined(__ppc__)
|
||||
#define ASM_OP_EXEC_RETURN_INSN "0x18,0xde,0xad,0xff"
|
||||
#endif
|
||||
#if defined(__i386__)
|
||||
#define ASM_OP_EXEC_RETURN_INSN "0x0f,0xa6,0xf0"
|
||||
#endif
|
||||
#else
|
||||
#define ASM_DATA_SECTION ".section \".data\"\n"
|
||||
#define ASM_PREVIOUS_SECTION ".previous\n"
|
||||
|
Loading…
Reference in New Issue
Block a user