* [Qemu-devel] [PATCH] Fix sun4m machine if MAX_FD != 2
@ 2008-02-28 13:15 Hervé Poussineau
0 siblings, 0 replies; only message in thread
From: Hervé Poussineau @ 2008-02-28 13:15 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 89 bytes --]
Hi,
In sun4m.c machine, attached patch removes assumption that MAX_FD is 2.
Hervé
[-- Attachment #2: sun4m.patch --]
[-- Type: text/plain, Size: 572 bytes --]
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-28 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-28 13:15 [Qemu-devel] [PATCH] Fix sun4m machine if MAX_FD != 2 Hervé Poussineau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).