Commit 001a3f5abfd2d1da4597510b5f75fcf7ec97ed33

Authored by ths
1 parent 9f0683d9

Fix floppy initialization, by Laurent Vivier.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3768 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 2 deletions
hw/mips_pica61.c
... ... @@ -172,8 +172,9 @@ void mips_pica61_init (int ram_size, int vga_ram_size,
172 172 for (i = 0; i < MAX_FD; i++) {
173 173 index = drive_get_index(IF_FLOPPY, 0, i);
174 174 if (index == -1)
175   - continue;
176   - fd[i] = drives_table[index].bdrv;
  175 + fd[i] = NULL;
  176 + else
  177 + fd[i] = drives_table[index].bdrv;
177 178 }
178 179 fdctrl_init(i8259[1], 1, 1, 0x80003000, fd);
179 180 for(i = 0; i < MAX_SERIAL_PORTS; i++) {
... ...