diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-14 15:10:24 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-16 18:39:05 +0200 |
commit | d020aa504cec8f525b55ba2ef982c09dc847c72e (patch) | |
tree | 33b21ee0244b55b521091fb6e92f167cde9b2af5 | |
parent | d3cdc49138c30be1d3c2f83d18f85d9fdee95f1a (diff) | |
download | qemu-d020aa504cec8f525b55ba2ef982c09dc847c72e.zip |
scsi: esp: respect FIFO invariant after message phase
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>
-rw-r--r-- | hw/scsi/esp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index 4b94bbca67..3f08598c8d 100644 --- 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); |