Update CTEST1 FIFO status when CTEST8 is written, setting to 0xFF when FIFO is flushed, otherwise clear to 0x00
Signed-off-by: Soumyajyotii Ssarkar<[email protected]> --- hw/scsi/ncr53c710.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.49.0
