summaryrefslogtreecommitdiffstats
path: root/hw/sh7750.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-09 18:46:04 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-09 18:46:04 +0000
commitbf5b74230819b27c43d479409df6851077392801 (patch)
treec2f9e1ce503ded3e16d289ce533f859d486011ac /hw/sh7750.c
parentea2b542a4c8fbf50a00c7b431b9fd2c0b832991f (diff)
downloadhqemu-bf5b74230819b27c43d479409df6851077392801.zip
hqemu-bf5b74230819b27c43d479409df6851077392801.tar.gz
SH4 serial controler improvements
(Shin-ichiro KAWASAKI) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4397 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sh7750.c')
-rw-r--r--hw/sh7750.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/hw/sh7750.c b/hw/sh7750.c
index 158d030..a60a83b 100644
--- a/hw/sh7750.c
+++ b/hw/sh7750.c
@@ -556,9 +556,19 @@ SH7750State *sh7750_init(CPUSH4State * cpu)
cpu->intc_handle = &s->intc;
- sh_serial_init(0x1fe00000, 0, s->periph_freq, serial_hds[0]);
+ sh_serial_init(0x1fe00000, 0, s->periph_freq, serial_hds[0],
+ sh_intc_source(&s->intc, SCI1_ERI),
+ sh_intc_source(&s->intc, SCI1_RXI),
+ sh_intc_source(&s->intc, SCI1_TXI),
+ sh_intc_source(&s->intc, SCI1_TEI),
+ NULL);
sh_serial_init(0x1fe80000, SH_SERIAL_FEAT_SCIF,
- s->periph_freq, serial_hds[1]);
+ s->periph_freq, serial_hds[1],
+ sh_intc_source(&s->intc, SCIF_ERI),
+ sh_intc_source(&s->intc, SCIF_RXI),
+ sh_intc_source(&s->intc, SCIF_TXI),
+ NULL,
+ sh_intc_source(&s->intc, SCIF_BRI));
tmu012_init(0x1fd80000,
TMU012_FEAT_TOCR | TMU012_FEAT_3CHAN | TMU012_FEAT_EXTCLK,
OpenPOWER on IntegriCloud