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 |
108 |
|
#define PPC_DECODE_CACHE 1 |
109 |
|
#define PPC_FLIGHT_RECORDER 1 |
110 |
|
#define PPC_PROFILE_COMPILE_TIME 0 |
111 |
< |
#define PPC_PROFILE_GENERIC_CALLS 0 |
111 |
> |
#define PPC_PROFILE_GENERIC_CALLS 1 |
112 |
> |
#define PPC_PROFILE_REGS_USE 0 |
113 |
|
#define KPX_MAX_CPUS 1 |
114 |
|
#if ENABLE_DYNGEN |
115 |
|
#define PPC_ENABLE_JIT 1 |
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 |
|
**/ |