qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollis@penguinppc.org>
To: qemu-devel@nongnu.org
Cc: kvm-ppc@vger.kernel.org
Subject: [Qemu-devel] [PATCH 3/4] ppc4xx: don't unregister RAM at reset
Date: Wed,  4 Aug 2010 17:21:36 -0700	[thread overview]
Message-ID: <1280967697-1875-4-git-send-email-hollis@penguinppc.org> (raw)
In-Reply-To: <1280967697-1875-1-git-send-email-hollis@penguinppc.org>

The PowerPC 4xx SDRAM controller emulation unregisters RAM in its reset
callback. However, qemu_system_reset() is now called at initialization
time, so all RAM is unregistered before starting the guest (!).

Signed-off-by: Hollis Blanchard <hollis@penguinppc.org>

---
 hw/ppc4xx_devs.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

This fixes a critical bug in PowerPC 440 Bamboo board emulation.

diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c
index be130c4..7f698b8 100644
--- a/hw/ppc4xx_devs.c
+++ b/hw/ppc4xx_devs.c
@@ -619,7 +619,6 @@ static void sdram_reset (void *opaque)
     /* We pre-initialize RAM banks */
     sdram->status = 0x00000000;
     sdram->cfg = 0x00800000;
-    sdram_unmap_bcr(sdram);
 }
 
 void ppc4xx_sdram_init (CPUState *env, qemu_irq irq, int nbanks,
-- 
1.7.2

  parent reply	other threads:[~2010-08-05  0:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-05  0:21 [Qemu-devel] [PATCH 0/4] fix PowerPC 440 Bamboo platform emulation Hollis Blanchard
2010-08-05  0:21 ` [Qemu-devel] [PATCH 1/4] Fix "make install" with a cross toolchain Hollis Blanchard
2010-08-05  0:21 ` [Qemu-devel] [PATCH 2/4] ppc4xx: correct SDRAM controller warning message condition Hollis Blanchard
2010-08-05  0:21 ` Hollis Blanchard [this message]
2010-08-05  0:21 ` [Qemu-devel] [PATCH 4/4] ppc4xx: load Bamboo kernel, initrd, and fdt at fixed addresses Hollis Blanchard
2010-08-05  4:57   ` Edgar E. Iglesias
2010-08-06  2:39   ` [Qemu-devel] " Liu Yu-B13201
2010-08-06 17:55     ` [Qemu-devel] " Hollis Blanchard
2010-08-06 18:12       ` Edgar E. Iglesias
2010-08-05  5:01 ` [Qemu-devel] [PATCH 0/4] fix PowerPC 440 Bamboo platform emulation Edgar E. Iglesias
2010-08-19 17:24 ` [Qemu-devel] " Hollis Blanchard

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=1280967697-1875-4-git-send-email-hollis@penguinppc.org \
    --to=hollis@penguinppc.org \
    --cc=kvm-ppc@vger.kernel.org \
    --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 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).