69 |
|
|
70 |
|
/* Mac ROM is not write protected */ |
71 |
|
#define ROM_IS_WRITE_PROTECTED 0 |
72 |
+ |
#define USE_SCRATCHMEM_SUBTERFUGE 1 |
73 |
|
|
74 |
|
#else |
75 |
|
|
76 |
|
/* Mac and host address space are distinct */ |
77 |
+ |
#ifndef REAL_ADDRESSING |
78 |
|
#define REAL_ADDRESSING 0 |
79 |
+ |
#endif |
80 |
|
|
81 |
|
/* Using 68k emulator */ |
82 |
|
#define EMULATED_68K 1 |
83 |
|
|
84 |
< |
/* Mac ROM is write protected */ |
85 |
< |
#define ROM_IS_WRITE_PROTECTED 1 |
84 |
> |
/* The m68k emulator uses a prefetch buffer ? */ |
85 |
> |
#define USE_PREFETCH_BUFFER 0 |
86 |
> |
|
87 |
> |
/* Mac ROM is write protected when banked memory is used */ |
88 |
> |
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
89 |
> |
# define ROM_IS_WRITE_PROTECTED 0 |
90 |
> |
# define USE_SCRATCHMEM_SUBTERFUGE 1 |
91 |
> |
#else |
92 |
> |
# define ROM_IS_WRITE_PROTECTED 1 |
93 |
> |
#endif |
94 |
> |
|
95 |
> |
#endif |
96 |
|
|
97 |
+ |
/* Direct Addressing requires Video on SEGV signals */ |
98 |
+ |
#if DIRECT_ADDRESSING && !ENABLE_VOSF |
99 |
+ |
# undef ENABLE_VOSF |
100 |
+ |
# define ENABLE_VOSF 1 |
101 |
|
#endif |
102 |
|
|
103 |
|
/* ExtFS is supported */ |
138 |
|
#else |
139 |
|
#error "No 8 byte type, you lose." |
140 |
|
#endif |
141 |
+ |
#if SIZEOF_VOID_P == 4 |
142 |
+ |
typedef uint32 uintptr; |
143 |
+ |
typedef int32 intptr; |
144 |
+ |
#elif SIZEOF_VOID_P == 8 |
145 |
+ |
typedef uint64 uintptr; |
146 |
+ |
typedef int64 intptr; |
147 |
+ |
#else |
148 |
+ |
#error "Unsupported size of pointer" |
149 |
+ |
#endif |
150 |
|
|
151 |
|
/* Time data type for Time Manager emulation */ |
152 |
|
#ifdef HAVE_CLOCK_GETTIME |
269 |
|
#define ENUMDECL typedef enum |
270 |
|
#define ENUMNAME(name) name |
271 |
|
#define write_log printf |
246 |
– |
|
247 |
– |
#ifdef USE_COMPILER |
248 |
– |
#define USE_MAPPED_MEMORY |
249 |
– |
#define CAN_MAP_MEMORY |
250 |
– |
#define NO_EXCEPTION_3 |
251 |
– |
#define NO_PREFETCH_BUFFER |
252 |
– |
#else |
272 |
|
#undef USE_MAPPED_MEMORY |
273 |
|
#undef CAN_MAP_MEMORY |
255 |
– |
#endif |
274 |
|
|
275 |
|
#ifdef X86_ASSEMBLY |
276 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |