summaryrefslogtreecommitdiff
path: root/include/hw/char
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-06-14 14:35:20 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-29 14:03:47 +0200
commita1df76da57aa8772a75e7c49f8e3829d07b4c46c (patch)
treeaedceb590073b6a1a6edeaa1c3c1ae9928a19c84 /include/hw/char
parent6f1de6b70d857d5e316ae6fd908f52818b827b08 (diff)
downloadqemu-a1df76da57aa8772a75e7c49f8e3829d07b4c46c.tar.gz
serial: remove watch on reset
Otherwise, this can cause serial_xmit to be entered with LSR.TEMT=0, which is invalid and causes an assertion failure. Reported-by: Bret Ketchum <bcketchum@gmail.com> Tested-by: Bret Ketchum <bcketchum@gmail.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/char')
-rw-r--r--include/hw/char/serial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h
index 6a322eb22e..9feddc613c 100644
--- a/include/hw/char/serial.h
+++ b/include/hw/char/serial.h
@@ -56,6 +56,7 @@ struct SerialState {
int it_shift;
int baudbase;
uint32_t tsr_retry;
+ guint watch_tag;
uint32_t wakeup;
/* Time when the last byte was successfully sent out of the tsr */