1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions for Linux |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig |
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 |
90 |
|
#endif |
91 |
|
|
92 |
|
// Always use the complete non-stubs Ethernet driver |
93 |
– |
#if DIRECT_ADDRESSING |
93 |
|
#define USE_ETHER_FULL_DRIVER 1 |
95 |
– |
#endif |
94 |
|
|
95 |
|
#define POWERPC_ROM 1 |
96 |
|
|
109 |
|
#define PPC_FLIGHT_RECORDER 1 |
110 |
|
#define PPC_PROFILE_COMPILE_TIME 0 |
111 |
|
#define PPC_PROFILE_GENERIC_CALLS 0 |
112 |
+ |
#define PPC_PROFILE_REGS_USE 0 |
113 |
|
#define KPX_MAX_CPUS 1 |
114 |
|
#if ENABLE_DYNGEN |
116 |
– |
// Don't bother with predecode cache when using JIT |
115 |
|
#define PPC_ENABLE_JIT 1 |
118 |
– |
#undef PPC_DECODE_CACHE |
116 |
|
#endif |
117 |
< |
#if defined(__i386__) |
117 |
> |
#if defined(__i386__) || defined(__x86_64__) |
118 |
|
#define DYNGEN_ASM_OPTS 1 |
119 |
|
#endif |
120 |
|
#else |
167 |
|
#error "Unsupported size of pointer" |
168 |
|
#endif |
169 |
|
|
170 |
+ |
// Define if the host processor supports fast unaligned load/stores |
171 |
+ |
#if defined __i386__ || defined __x86_64__ |
172 |
+ |
#define UNALIGNED_PROFITABLE 1 |
173 |
+ |
#endif |
174 |
+ |
|
175 |
+ |
|
176 |
|
/** |
177 |
|
* Helper functions to byteswap data |
178 |
|
**/ |