25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: cpu_sh.c,v 1.75 2007/06/07 15:36:24 debug Exp $ |
* $Id: cpu_sh.c,v 1.76 2007/06/28 13:36:47 debug Exp $ |
29 |
* |
* |
30 |
* Hitachi SuperH ("SH") CPU emulation. |
* Hitachi SuperH ("SH") CPU emulation. |
31 |
* |
* |
50 |
#include "misc.h" |
#include "misc.h" |
51 |
#include "settings.h" |
#include "settings.h" |
52 |
#include "symbol.h" |
#include "symbol.h" |
|
#include "timer.h" |
|
53 |
|
|
54 |
#include "sh4_exception.h" |
#include "sh4_exception.h" |
55 |
#include "sh4_mmu.h" |
#include "sh4_mmu.h" |
61 |
|
|
62 |
|
|
63 |
extern int quiet_mode; |
extern int quiet_mode; |
|
extern int native_code_translation_enabled; |
|
64 |
|
|
65 |
void sh_pc_to_pointers(struct cpu *); |
void sh_pc_to_pointers(struct cpu *); |
66 |
|
|
222 |
|
|
223 |
sh_update_interrupt_priorities(cpu); |
sh_update_interrupt_priorities(cpu); |
224 |
|
|
|
if (native_code_translation_enabled) |
|
|
cpu->sampling_timer = timer_add(CPU_SAMPLE_TIMER_HZ, |
|
|
sh_timer_sample_tick, cpu); |
|
|
|
|
225 |
return 1; |
return 1; |
226 |
} |
} |
227 |
|
|