118 |
|
static uint8 *native_op_trampoline; |
119 |
|
#endif |
120 |
|
|
121 |
– |
// JIT Compiler enabled? |
122 |
– |
static inline bool enable_jit_p() |
123 |
– |
{ |
124 |
– |
return PrefsFindBool("jit"); |
125 |
– |
} |
126 |
– |
|
121 |
|
|
122 |
|
/** |
123 |
|
* PowerPC emulator glue with special 'sheep' opcodes |
175 |
|
}; |
176 |
|
|
177 |
|
sheepshaver_cpu::sheepshaver_cpu() |
184 |
– |
: powerpc_cpu(enable_jit_p()) |
178 |
|
{ |
179 |
|
init_decoder(); |
180 |
+ |
|
181 |
+ |
#if PPC_ENABLE_JIT |
182 |
+ |
if (PrefsFindBool("jit")) |
183 |
+ |
enable_jit(); |
184 |
+ |
#endif |
185 |
|
} |
186 |
|
|
187 |
|
void sheepshaver_cpu::init_decoder() |
189 |
|
static const instr_info_t sheep_ii_table[] = { |
190 |
|
{ "sheep", |
191 |
|
(execute_pmf)&sheepshaver_cpu::execute_sheep, |
194 |
– |
NULL, |
192 |
|
PPC_I(SHEEP), |
193 |
|
D_form, 6, 0, CFLOW_JUMP | CFLOW_TRAP |
194 |
|
} |