aboutsummaryrefslogtreecommitdiff
path: root/hw/sh7750.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-12 01:11:42 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-12 01:11:42 +0000
commit703243a044c8b7d5c52fdf67e4c1aacf1d6c4d76 (patch)
tree3312b6ec7097fc1c48fada3ec85a65053b4d45a6 /hw/sh7750.c
parentb7d35e65834d6ef989bdab7dbd097fd879898168 (diff)
Adds interrupt support to the sh specific timer code (Magnus Damm).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3812 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sh7750.c')
-rw-r--r--hw/sh7750.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/hw/sh7750.c b/hw/sh7750.c
index c6702883a4..45a5c7f098 100644
--- a/hw/sh7750.c
+++ b/hw/sh7750.c
@@ -559,8 +559,11 @@ SH7750State *sh7750_init(CPUSH4State * cpu)
tmu012_init(0x1fd80000,
TMU012_FEAT_TOCR | TMU012_FEAT_3CHAN | TMU012_FEAT_EXTCLK,
- s->periph_freq);
-
+ s->periph_freq,
+ sh_intc_source(&s->intc, TMU0),
+ sh_intc_source(&s->intc, TMU1),
+ sh_intc_source(&s->intc, TMU2_TUNI),
+ sh_intc_source(&s->intc, TMU2_TICPI));
if (cpu_model & (SH_CPU_SH7750 | SH_CPU_SH7750S | SH_CPU_SH7751)) {
sh_intc_register_sources(&s->intc,
@@ -578,7 +581,10 @@ SH7750State *sh7750_init(CPUSH4State * cpu)
sh_intc_register_sources(&s->intc,
_INTC_ARRAY(vectors_tmu34),
NULL, 0);
- tmu012_init(0x1e100000, 0, s->periph_freq);
+ tmu012_init(0x1e100000, 0, s->periph_freq,
+ sh_intc_source(&s->intc, TMU3),
+ sh_intc_source(&s->intc, TMU4),
+ NULL, NULL);
}
if (cpu_model & (SH_CPU_SH7751_ALL)) {