Commit ded7ba9c75687710d4ca6f0501c403d9bfa84019
1 parent
ae2dbf7f
Add floppy support, tested to work with www.linux-mips.org GIT head.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3744 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
4 deletions
hw/mips_malta.c
... | ... | @@ -24,6 +24,7 @@ |
24 | 24 | |
25 | 25 | #include "hw.h" |
26 | 26 | #include "pc.h" |
27 | +#include "fdc.h" | |
27 | 28 | #include "net.h" |
28 | 29 | #include "boards.h" |
29 | 30 | #include "smbus.h" |
... | ... | @@ -767,7 +768,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, |
767 | 768 | PCIBus *pci_bus; |
768 | 769 | CPUState *env; |
769 | 770 | RTCState *rtc_state; |
770 | - /* fdctrl_t *floppy_controller; */ | |
771 | + fdctrl_t *floppy_controller; | |
771 | 772 | MaltaFPGAState *malta_fpga; |
772 | 773 | int ret; |
773 | 774 | qemu_irq *i8259; |
... | ... | @@ -882,9 +883,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, |
882 | 883 | serial_init(0x2f8, i8259[3], serial_hds[1]); |
883 | 884 | if (parallel_hds[0]) |
884 | 885 | parallel_init(0x378, i8259[7], parallel_hds[0]); |
885 | - /* XXX: The floppy controller does not work correctly, something is | |
886 | - probably wrong. | |
887 | - floppy_controller = fdctrl_init(i8259[6], 2, 0, 0x3f0, fd_table); */ | |
886 | + floppy_controller = fdctrl_init(i8259[6], 2, 0, 0x3f0, fd_table); | |
888 | 887 | |
889 | 888 | /* Sound card */ |
890 | 889 | #ifdef HAS_AUDIO | ... | ... |