mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-25 03:29:38 +00:00
scsi_bus: fix asserting control lines.
This commit is contained in:
parent
2c3a5c3b8f
commit
f2be286515
@ -67,15 +67,14 @@ void ScsiBus::assert_ctrl_line(int initiator_id, uint16_t mask)
|
||||
{
|
||||
uint16_t new_state = 0xFFFFU & mask;
|
||||
|
||||
this->dev_ctrl_lines[initiator_id] = new_state;
|
||||
this->dev_ctrl_lines[initiator_id] |= new_state;
|
||||
|
||||
if (new_state == this->ctrl_lines) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->ctrl_lines = new_state;
|
||||
|
||||
if (new_state & SCSI_CTRL_RST) {
|
||||
this->ctrl_lines |= SCSI_CTRL_RST;
|
||||
this->cur_phase = ScsiPhase::RESET;
|
||||
change_bus_phase(initiator_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user