summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Sven Schnelle <svens@stackframe.org>2018-11-01 20:28:43 +0100
committer Sven Schnelle <svens@stackframe.org>2018-11-01 20:28:43 +0100
commit89ec478810a0b553d8e3d0af3998c38dda54ea75 (patch)
tree7175594de966bff55fc6762e0445941ef943f1e1
parent295ac93d43db18b03239b74ddd6d20b03180a4fa (diff)
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.
-rw-r--r--src/devices/machine/mb87030.cpp4
1 files 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;
}