Fix sun4m machine if MAX_FD != 2
PATCH 1/1 Fix sun4m machine if MAX_FD != 2
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
sun4m.c +1 -1
@@ -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;