serial: clear LSR.TEMT when populating the TSR
commitdfe844c9043815497b6472bfaf470b0f8d2e7312
authorAnthony Liguori <aliguori@us.ibm.com>
Sun, 1 Apr 2012 19:18:30 +0000 (1 14:18 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 2 Apr 2012 14:43:17 +0000 (2 09:43 -0500)
tree4e1cdbdd1e1b3650f7edb2e5e68e50f55cb579f7
parent67c5322d7000fd105a926eec44bc1765b7d70bdd
serial: clear LSR.TEMT when populating the TSR

We never actually clear the TEMT (transmit sending register empty) flag when
populating the TSR.  We set the flag, but since it's never cleared, setting it
is sort of pointless..

I found this with a unit test case.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/serial.c