mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
Fix buffer mux handling for unconnected serial ports
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3737 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ef056e4398
commit
b76482e765
@ -475,7 +475,8 @@ static uint32_t slavio_serial_mem_readb(void *opaque, target_phys_addr_t addr)
|
||||
else
|
||||
ret = s->rx;
|
||||
SER_DPRINTF("Read channel %c, ch %d\n", CHN_C(s), ret);
|
||||
qemu_chr_accept_input(s->chr);
|
||||
if (s->chr)
|
||||
qemu_chr_accept_input(s->chr);
|
||||
return ret;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user