The NeXT-Cube bios uses this mode in its selftest, and without decreasing the amount of bytes in the fifo here, the selftest fails.
Signed-off-by: Thomas Huth <h...@tuxfamily.org> --- hw/scsi/esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index e52188d022..0d54efe826 100644 --- a/hw/scsi/esp.c +++ b/hw/scsi/esp.c @@ -961,7 +961,7 @@ uint64_t esp_reg_read(ESPState *s, uint32_t saddr) (s->rregs[ESP_RSTAT] & STAT_PIO_MASK) == 0) { /* Data out. */ qemu_log_mask(LOG_UNIMP, "esp: PIO data read not implemented\n"); - s->rregs[ESP_FIFO] = 0; + s->rregs[ESP_FIFO] = esp_fifo_pop(&s->fifo); } else { if ((s->rregs[ESP_RSTAT] & 0x7) == STAT_DI) { if (s->ti_size) { -- 2.41.0