summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-03 02:17:39 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-03 02:17:39 +0000
commit001a3f5abfd2d1da4597510b5f75fcf7ec97ed33 (patch)
tree2284e928920225ac52acf32415cf9b61dfd53040 /hw
parent9f0683d9f56656bbd75805e860239f9897a8a6ea (diff)
Fix floppy initialization, by Laurent Vivier.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3768 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw')
-rw-r--r--hw/mips_pica61.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/mips_pica61.c b/hw/mips_pica61.c
index ced0e55671..dfbc2f0d49 100644
--- a/hw/mips_pica61.c
+++ b/hw/mips_pica61.c
@@ -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++) {