1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions for Unix |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
96 |
|
#if SIZEOF_LONG == 8 |
97 |
|
typedef unsigned long uint64; |
98 |
|
typedef long int64; |
99 |
+ |
#define VAL64(a) (a ## l) |
100 |
+ |
#define UVAL64(a) (a ## ul) |
101 |
|
#elif SIZEOF_LONG_LONG == 8 |
102 |
|
typedef unsigned long long uint64; |
103 |
|
typedef long long int64; |
104 |
+ |
#define VAL64(a) (a ## LL) |
105 |
+ |
#define UVAL64(a) (a ## uLL) |
106 |
|
#else |
107 |
|
#error "No 8 byte type, you lose." |
108 |
|
#endif |
219 |
|
#define call_mem_put_func(func, addr, v) ((*func)(addr, v)) |
220 |
|
#define __inline__ inline |
221 |
|
#define CPU_EMU_SIZE 0 |
218 |
– |
#undef USE_MAPPED_MEMORY |
219 |
– |
#undef CAN_MAP_MEMORY |
222 |
|
#undef NO_INLINE_MEMORY_ACCESS |
223 |
|
#undef MD_HAVE_MEM_1_FUNCS |
222 |
– |
#undef USE_COMPILER |
224 |
|
#define ENUMDECL typedef enum |
225 |
|
#define ENUMNAME(name) name |
226 |
|
#define write_log printf |
227 |
|
|
228 |
+ |
#ifdef USE_COMPILER |
229 |
+ |
#define USE_MAPPED_MEMORY |
230 |
+ |
#define CAN_MAP_MEMORY |
231 |
+ |
#define NO_EXCEPTION_3 |
232 |
+ |
#define NO_PREFETCH_BUFFER |
233 |
+ |
#else |
234 |
+ |
#undef USE_MAPPED_MEMORY |
235 |
+ |
#undef CAN_MAP_MEMORY |
236 |
+ |
#endif |
237 |
+ |
|
238 |
|
#ifdef X86_ASSEMBLY |
239 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |
240 |
|
#else |