summaryrefslogtreecommitdiff
path: root/hw/scsi
diff options
context:
space:
mode:
authorHervé Poussineau <hpoussin@reactos.org>2016-11-18 23:33:17 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-11-22 23:26:51 +0100
commit1d895feb3b9e4dd3560f505c309f26abf56c1e82 (patch)
tree37e379311ebaf989ee960fd89f0859bae1af1421 /hw/scsi
parent169407e1f7c9afee1cdac0ee6ad0b8d5e361c4dd (diff)
downloadqemu-1d895feb3b9e4dd3560f505c309f26abf56c1e82.tar.gz
scsi/esp: do not raise an interrupt when reading the FIFO register
This fixes SCSI adapter self-tests done in MIPS Jazz emulation, broken since ff589551c8e8e9e95e211b9d8daafb4ed39f1aec. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Message-Id: <1479508397-8443-1-git-send-email-hpoussin@reactos.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/esp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index 1f2f2d33dd..5a5a4e946a 100644
--- a/hw/scsi/esp.c
+++ b/hw/scsi/esp.c
@@ -406,11 +406,9 @@ uint64_t esp_reg_read(ESPState *s, uint32_t saddr)
/* Data out. */
qemu_log_mask(LOG_UNIMP, "esp: PIO data read not implemented\n");
s->rregs[ESP_FIFO] = 0;
- esp_raise_irq(s);
} else if (s->ti_rptr < s->ti_wptr) {
s->ti_size--;
s->rregs[ESP_FIFO] = s->ti_buf[s->ti_rptr++];
- esp_raise_irq(s);
}
if (s->ti_rptr == s->ti_wptr) {
s->ti_rptr = 0;