Fix floppy initialization, by Laurent Vivier.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3768 c046a42c-6fe2-441c-8c8c-71466251a162
master
ths 2007-12-03 02:17:39 +00:00
parent 9f0683d9f5
commit 001a3f5abf
1 changed files with 3 additions and 2 deletions

View File

@ -172,8 +172,9 @@ void mips_pica61_init (int ram_size, int vga_ram_size,
for (i = 0; i < MAX_FD; i++) {
index = drive_get_index(IF_FLOPPY, 0, i);
if (index == -1)
continue;
fd[i] = drives_table[index].bdrv;
fd[i] = NULL;
else
fd[i] = drives_table[index].bdrv;
}
fdctrl_init(i8259[1], 1, 1, 0x80003000, fd);
for(i = 0; i < MAX_SERIAL_PORTS; i++) {