]> git.proxmox.com Git - qemu.git/commitdiff
sh_serial: enable tx after reset (Magnus Damm).
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 12 Dec 2007 00:40:24 +0000 (00:40 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 12 Dec 2007 00:40:24 +0000 (00:40 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3811 c046a42c-6fe2-441c-8c8c-71466251a162

hw/sh_serial.c
linux-user/syscall.c

index 324c2a8fb931e0c88f067c7c66ff69dc0b1a6558..fe409c49dddccd7202d9806fe0cd2625a28b1a22 100644 (file)
@@ -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) {
index 1062fdf03e90e9720c8104fa44bc4f12753ffb86..4ebc8bbdb30a56fffe6264f64e4413ddf4707bb9 100644 (file)
@@ -3177,8 +3177,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
             goto efault;
         ret = get_errno(sys_unlinkat(arg1, p, arg3));
         unlock_user(p, arg2, 0);
-#endif
         break;
+#endif
     case TARGET_NR_execve:
         {
             char **argp, **envp;