Hi, In sun4m.c machine, attached patch removes assumption that MAX_FD is 2.
Hervé
Index: sun4m.c =================================================================== RCS file: /sources/qemu/qemu/hw/sun4m.c,v retrieving revision 1.84 diff -u -r1.84 sun4m.c --- sun4m.c 11 Feb 2008 20:01:36 -0000 1.84 +++ sun4m.c 27 Feb 2008 08:50:38 -0000 @@ -492,7 +492,7 @@ 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;