Message ID | 20230930132351.30282-3-huth@tuxfamily.org |
---|---|
State | New |
Headers | show |
Series | m68k: Instantiate ESP and next-net in the next-cube machine | expand |
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) {
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 <huth@tuxfamily.org> --- hw/scsi/esp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)