[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] hw/scsi/esp: Work around problem with PIO data read for the
From: |
Thomas Huth |
Subject: |
[PATCH 2/5] hw/scsi/esp: Work around problem with PIO data read for the NeXT-Cube machine |
Date: |
Sat, 30 Sep 2023 15:23:48 +0200 |
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(-)
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