fdc: remove double affectation of FD_MSR_CMDBUSY flag
FD_MSR_CMDBUSY flag is already set in fdctrl_write_data(), just before calling the command handler (fdctrl_start_transfer() here). Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
6f442fe838
commit
27c86e24e9
2
hw/fdc.c
2
hw/fdc.c
@ -1239,7 +1239,7 @@ static void fdctrl_start_transfer(FDCtrl *fdctrl, int direction)
|
|||||||
/* Set the FIFO state */
|
/* Set the FIFO state */
|
||||||
fdctrl->data_dir = direction;
|
fdctrl->data_dir = direction;
|
||||||
fdctrl->data_pos = 0;
|
fdctrl->data_pos = 0;
|
||||||
fdctrl->msr |= FD_MSR_CMDBUSY;
|
assert(fdctrl->msr & FD_MSR_CMDBUSY);
|
||||||
if (fdctrl->fifo[0] & 0x80)
|
if (fdctrl->fifo[0] & 0x80)
|
||||||
fdctrl->data_state |= FD_STATE_MULTI;
|
fdctrl->data_state |= FD_STATE_MULTI;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user