25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_ppc.c,v 1.68 2007/03/26 02:01:36 debug Exp $ |
* $Id: cpu_ppc.c,v 1.70 2007/06/15 00:41:21 debug Exp $ |
29 |
* |
* |
30 |
* PowerPC/POWER CPU emulation. |
* PowerPC/POWER CPU emulation. |
31 |
*/ |
*/ |
49 |
#include "ppc_spr_strings.h" |
#include "ppc_spr_strings.h" |
50 |
#include "settings.h" |
#include "settings.h" |
51 |
#include "symbol.h" |
#include "symbol.h" |
52 |
|
#include "timer.h" |
53 |
|
#include "useremul.h" |
54 |
|
|
55 |
|
|
56 |
#define DYNTRANS_DUALMODE_32 |
#define DYNTRANS_DUALMODE_32 |
57 |
#include "tmp_ppc_head.c" |
#include "tmp_ppc_head.c" |
58 |
|
|
59 |
|
|
60 |
|
extern int native_code_translation_enabled; |
61 |
|
|
62 |
void ppc_pc_to_pointers(struct cpu *); |
void ppc_pc_to_pointers(struct cpu *); |
63 |
void ppc32_pc_to_pointers(struct cpu *); |
void ppc32_pc_to_pointers(struct cpu *); |
64 |
|
|
238 |
interrupt_handler_register(&template); |
interrupt_handler_register(&template); |
239 |
} |
} |
240 |
|
|
241 |
|
if (native_code_translation_enabled) |
242 |
|
cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ, |
243 |
|
ppc_timer_sample_tick, cpu); |
244 |
|
|
245 |
return 1; |
return 1; |
246 |
} |
} |
247 |
|
|