aboutsummaryrefslogtreecommitdiff
path: root/hw/sh_serial.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-12 00:40:24 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-12 00:40:24 +0000
commitb7d35e65834d6ef989bdab7dbd097fd879898168 (patch)
tree518445dee2cbc54cc70778df523f3ca537703236 /hw/sh_serial.c
parented494d87f7baf56742d5b699012e3f26e3779e10 (diff)
sh_serial: enable tx after reset (Magnus Damm).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3811 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sh_serial.c')
-rw-r--r--hw/sh_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sh_serial.c b/hw/sh_serial.c
index 324c2a8fb9..fe409c49dd 100644
--- a/hw/sh_serial.c
+++ b/hw/sh_serial.c
@@ -293,7 +293,7 @@ void sh_serial_init (target_phys_addr_t base, int feat,
s->smr = 0;
s->brr = 0xff;
- s->scr = 0;
+ s->scr = 1 << 5; /* pretend that TX is enabled so early printk works */
s->sptr = 0;
if (feat & SH_SERIAL_FEAT_SCIF) {