qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix sun4m machine if MAX_FD != 2


From: Hervé Poussineau
Subject: [Qemu-devel] [PATCH] Fix sun4m machine if MAX_FD != 2
Date: Thu, 28 Feb 2008 14:15:40 +0100
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

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;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]