提交 ded7ba9c 编写于 作者: T ths

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
上级 ae2dbf7f
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "hw.h" #include "hw.h"
#include "pc.h" #include "pc.h"
#include "fdc.h"
#include "net.h" #include "net.h"
#include "boards.h" #include "boards.h"
#include "smbus.h" #include "smbus.h"
...@@ -767,7 +768,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, ...@@ -767,7 +768,7 @@ void mips_malta_init (int ram_size, int vga_ram_size,
PCIBus *pci_bus; PCIBus *pci_bus;
CPUState *env; CPUState *env;
RTCState *rtc_state; RTCState *rtc_state;
/* fdctrl_t *floppy_controller; */ fdctrl_t *floppy_controller;
MaltaFPGAState *malta_fpga; MaltaFPGAState *malta_fpga;
int ret; int ret;
qemu_irq *i8259; qemu_irq *i8259;
...@@ -882,9 +883,7 @@ void mips_malta_init (int ram_size, int vga_ram_size, ...@@ -882,9 +883,7 @@ void mips_malta_init (int ram_size, int vga_ram_size,
serial_init(0x2f8, i8259[3], serial_hds[1]); serial_init(0x2f8, i8259[3], serial_hds[1]);
if (parallel_hds[0]) if (parallel_hds[0])
parallel_init(0x378, i8259[7], parallel_hds[0]); parallel_init(0x378, i8259[7], parallel_hds[0]);
/* XXX: The floppy controller does not work correctly, something is floppy_controller = fdctrl_init(i8259[6], 2, 0, 0x3f0, fd_table);
probably wrong.
floppy_controller = fdctrl_init(i8259[6], 2, 0, 0x3f0, fd_table); */
/* Sound card */ /* Sound card */
#ifdef HAS_AUDIO #ifdef HAS_AUDIO
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册