From: Soumyajyotii Ssarkar Date: Sun, 21 Dec 2025 14:23:17 +0000 (+0530) Subject: scsi: ncr710: Fix CTEST FIFO status X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2410c0332a562c5a33cac366a360c4ae33bde795;p=thirdparty%2Fqemu.git scsi: ncr710: Fix CTEST FIFO status Update CTEST1 FIFO status when CTEST8 is written, setting to 0xFF when FIFO is flushed, otherwise clear to 0x00. Signed-off-by: Soumyajyotii Ssarkar Tested-by: Helge Deller Signed-off-by: Helge Deller --- diff --git a/hw/scsi/ncr53c710.c b/hw/scsi/ncr53c710.c index 0ea1fc43a3..cdc365478c 100644 --- a/hw/scsi/ncr53c710.c +++ b/hw/scsi/ncr53c710.c @@ -2161,7 +2161,11 @@ static void ncr710_reg_writeb(NCR710State *s, int offset, uint8_t val) if (val & 0x04) { ncr710_scsi_fifo_init(&s->scsi_fifo); s->dstat |= NCR710_DSTAT_DFE; + s->ctest1 = 0xFF; + } else if (s->ctest8 & 0x04) { + s->ctest1 = 0x00; } + s->ctest8 = val; break; case NCR710_LCRC_REG: /* LCRC */ s->lcrc = val;