From 009139c9023c90e8e00c31a2f467f64a2f39b755 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 10 Jan 2024 00:43:17 +0100 Subject: [PATCH] IDE: Reset the reset flag to 0 for all affected devices in ide_board_callback(), fixes #4014. --- src/disk/hdc_ide.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/disk/hdc_ide.c b/src/disk/hdc_ide.c index b47bfaf70..39031138f 100644 --- a/src/disk/hdc_ide.c +++ b/src/disk/hdc_ide.c @@ -1784,7 +1784,7 @@ ide_writeb(uint16_t addr, uint8_t val, void *priv) ide->tf->error = ABRT_ERR; ide_irq_raise(ide); } - return; + break; default: break; @@ -2096,6 +2096,8 @@ ide_board_callback(void *priv) ide->tf->atastat |= DRDY_STAT | DSC_STAT; } else ide->tf->atastat = DRDY_STAT | DSC_STAT; + + ide->reset = 0; } ide = dev->ide[0];