All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <Stefan.Weil@weilnetz.de>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel][PATCH] qemu/hw mips_malta.c
Date: Wed, 21 Feb 2007 21:18:03 +0100	[thread overview]
Message-ID: <45DCA8FB.7000809@weilnetz.de> (raw)
In-Reply-To: <E1HJVDQ-0002cL-6P@savannah.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

With your change, both serial ports are connected to
the same virtual console which results in a funny
but unwanted behaviour.

My patch fixes this.

The patch also modifies the BIOS check. It is now
possible to load a BIOS with less than 4 MiB.

What about my patch for EEPROM 24C01 / 24C02
emulation needed for SDRAM SPD (dated 2007-01-23)?
Is there any reason why it cannot be included in
CVS HEAD?

Without it, Malta won't run Redboot BIOS...

Stefan


[-- Attachment #2: mips_malta.patch --]
[-- Type: text/x-diff, Size: 1124 bytes --]

Index: hw/mips_malta.c
===================================================================
--- hw/mips_malta.c	(Revision 467)
+++ hw/mips_malta.c	(Arbeitskopie)
@@ -533,7 +533,7 @@
     } else {
         snprintf(buf, sizeof(buf), "%s/%s", bios_dir, BIOS_FILENAME);
         ret = load_image(buf, phys_ram_base + bios_offset);
-        if (ret != BIOS_SIZE) {
+        if (ret < 0 || ret > BIOS_SIZE) {
             fprintf(stderr, "qemu: Warning, could not load MIPS bios '%s'\n",
                     buf);
             exit(1);
@@ -569,8 +569,12 @@
     /* Super I/O */
     kbd_init();
     rtc_state = rtc_init(0x70, 8);
-    serial_init(&pic_set_irq_new, isa_pic, 0x3f8, 4, serial_hds[0]);
-    serial_init(&pic_set_irq_new, isa_pic, 0x2f8, 4, serial_hds[0]);
+    if (serial_hds[0]) {
+        serial_init(&pic_set_irq_new, isa_pic, 0x3f8, 4, serial_hds[0]);
+    }
+    if (serial_hds[1]) {
+        serial_init(&pic_set_irq_new, isa_pic, 0x2f8, 4, serial_hds[1]);
+    }
     parallel_init(0x378, 7, parallel_hds[0]);
     /* XXX: The floppy controller does not work correctly, something is
        probably wrong.

  reply	other threads:[~2007-02-21 20:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-20 13:39 [Qemu-devel] qemu/hw mips_malta.c Thiemo Seufer
2007-02-21 20:18 ` Stefan Weil [this message]
2007-02-21 22:54   ` [Qemu-devel][PATCH] " Thiemo Seufer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45DCA8FB.7000809@weilnetz.de \
    --to=stefan.weil@weilnetz.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.