Commit b7d35e65834d6ef989bdab7dbd097fd879898168
1 parent
ed494d87
sh_serial: enable tx after reset (Magnus Damm).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3811 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
2 additions
and
2 deletions
hw/sh_serial.c
... | ... | @@ -293,7 +293,7 @@ void sh_serial_init (target_phys_addr_t base, int feat, |
293 | 293 | |
294 | 294 | s->smr = 0; |
295 | 295 | s->brr = 0xff; |
296 | - s->scr = 0; | |
296 | + s->scr = 1 << 5; /* pretend that TX is enabled so early printk works */ | |
297 | 297 | s->sptr = 0; |
298 | 298 | |
299 | 299 | if (feat & SH_SERIAL_FEAT_SCIF) { | ... | ... |
linux-user/syscall.c
... | ... | @@ -3177,8 +3177,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, |
3177 | 3177 | goto efault; |
3178 | 3178 | ret = get_errno(sys_unlinkat(arg1, p, arg3)); |
3179 | 3179 | unlock_user(p, arg2, 0); |
3180 | -#endif | |
3181 | 3180 | break; |
3181 | +#endif | |
3182 | 3182 | case TARGET_NR_execve: |
3183 | 3183 | { |
3184 | 3184 | char **argp, **envp; | ... | ... |