mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
fdc/sparc32: don't hang on detection under OBP
Stepping through the SS-5's OBP initialization routines it looks like reading fdc main status register should clear the fd interrupt. The patch doesn't fix problems with fdc on sparc platform, it only fixes fdc detection. Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
c5de386ac9
commit
82407d1a40
1 changed files with 6 additions and 0 deletions
6
hw/fdc.c
6
hw/fdc.c
|
@ -960,6 +960,12 @@ static uint32_t fdctrl_read_main_status (fdctrl_t *fdctrl)
|
||||||
fdctrl->dsr &= ~FD_DSR_PWRDOWN;
|
fdctrl->dsr &= ~FD_DSR_PWRDOWN;
|
||||||
fdctrl->dor |= FD_DOR_nRESET;
|
fdctrl->dor |= FD_DOR_nRESET;
|
||||||
|
|
||||||
|
/* Sparc mutation */
|
||||||
|
if (fdctrl->sun4m) {
|
||||||
|
retval |= FD_MSR_DIO;
|
||||||
|
fdctrl_reset_irq(fdctrl);
|
||||||
|
};
|
||||||
|
|
||||||
FLOPPY_DPRINTF("main status register: 0x%02x\n", retval);
|
FLOPPY_DPRINTF("main status register: 0x%02x\n", retval);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue