projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3cdc49
)
scsi: esp: respect FIFO invariant after message phase
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 14 Jun 2016 13:10:24 +0000
(15:10 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 16 Jun 2016 16:39:05 +0000
(18:39 +0200)
The FIFO contains two bytes; hence the write ptr should be two bytes ahead
of the read pointer.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/esp.c
patch
|
blob
|
history
diff --git
a/hw/scsi/esp.c
b/hw/scsi/esp.c
index 4b94bbca67a37f574fa782d7da07e0c10e447e23..3f08598c8d76ff0052df664ae802b581b1cb3b03 100644
(file)
--- a/
hw/scsi/esp.c
+++ b/
hw/scsi/esp.c
@@
-222,7
+222,7
@@
static void write_response(ESPState *s)
} else {
s->ti_size = 2;
s->ti_rptr = 0;
- s->ti_wptr =
0
;
+ s->ti_wptr =
2
;
s->rregs[ESP_RFLAGS] = 2;
}
esp_raise_irq(s);