From 89ec478810a0b553d8e3d0af3998c38dda54ea75 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Thu, 1 Nov 2018 20:28:43 +0100 Subject: [PATCH] mb87030: fix SCSI disconnect interrupt (nw) Previous order of code triggered a state change after the disconnect, which confused the NETBSD installer. With this fixed, writing a disklabel to a netbsd chd works. --- src/devices/machine/mb87030.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/mb87030.cpp b/src/devices/machine/mb87030.cpp index 6de5bc862b4..9edbec0f429 100644 --- a/src/devices/machine/mb87030.cpp +++ b/src/devices/machine/mb87030.cpp @@ -420,9 +420,9 @@ void mb87030_device::step(bool timeout) break; case State::TransferDeassertACK: - scsi_set_ctrl(0, S_ACK); - scsi_bus->ctrl_wait(scsi_refid, S_REQ, S_REQ); update_state(State::TransferWaitReq, 10); + scsi_bus->ctrl_wait(scsi_refid, S_REQ, S_REQ); + scsi_set_ctrl(0, S_ACK); break; }