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 ff589551c8
.
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>
This commit is contained in:
parent
169407e1f7
commit
1d895feb3b
@ -406,11 +406,9 @@ uint64_t esp_reg_read(ESPState *s, uint32_t saddr)
|
|||||||
/* Data out. */
|
/* Data out. */
|
||||||
qemu_log_mask(LOG_UNIMP, "esp: PIO data read not implemented\n");
|
qemu_log_mask(LOG_UNIMP, "esp: PIO data read not implemented\n");
|
||||||
s->rregs[ESP_FIFO] = 0;
|
s->rregs[ESP_FIFO] = 0;
|
||||||
esp_raise_irq(s);
|
|
||||||
} else if (s->ti_rptr < s->ti_wptr) {
|
} else if (s->ti_rptr < s->ti_wptr) {
|
||||||
s->ti_size--;
|
s->ti_size--;
|
||||||
s->rregs[ESP_FIFO] = s->ti_buf[s->ti_rptr++];
|
s->rregs[ESP_FIFO] = s->ti_buf[s->ti_rptr++];
|
||||||
esp_raise_irq(s);
|
|
||||||
}
|
}
|
||||||
if (s->ti_rptr == s->ti_wptr) {
|
if (s->ti_rptr == s->ti_wptr) {
|
||||||
s->ti_rptr = 0;
|
s->ti_rptr = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user