fixed floppy reset (aka win98 floppy probe fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@783 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
66201e2ddf
commit
fb6cf1d09c
2
hw/fdc.c
2
hw/fdc.c
@ -636,11 +636,11 @@ static void fdctrl_write_dor (fdctrl_t *fdctrl, uint32_t value)
|
||||
if (!(fdctrl->state & FD_CTRL_RESET)) {
|
||||
FLOPPY_DPRINTF("controler enter RESET state\n");
|
||||
fdctrl->state |= FD_CTRL_RESET;
|
||||
fdctrl_reset(fdctrl, 1);
|
||||
}
|
||||
} else {
|
||||
if (fdctrl->state & FD_CTRL_RESET) {
|
||||
FLOPPY_DPRINTF("controler out of RESET state\n");
|
||||
fdctrl_reset(fdctrl, 1);
|
||||
fdctrl->state &= ~(FD_CTRL_RESET | FD_CTRL_SLEEP);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user