]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commitdiff
Fix sun4m machine if MAX_FD != 2 (Herv�oussineau)
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 29 Feb 2008 19:26:20 +0000 (19:26 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 29 Feb 2008 19:26:20 +0000 (19:26 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4001 c046a42c-6fe2-441c-8c8c-71466251a162

hw/sun4m.c

index 55abfe8b7da99b6f71bef97ec620a554dfbf346d..e4717c485c00d79430d681c5faaf9d04ad6228c6 100644 (file)
@@ -492,7 +492,7 @@ static void sun4m_hw_init(const struct hwdef *hwdef, int RAM_size,
 
     if (hwdef->fd_base != (target_phys_addr_t)-1) {
         /* there is zero or one floppy drive */
-        fd[1] = fd[0] = NULL;
+        memset(fd, 0, sizeof(fd));
         index = drive_get_index(IF_FLOPPY, 0, 0);
         if (index != -1)
             fd[0] = drives_table[index].bdrv;