From: Hollis Blanchard Date: Thu, 05 Aug 2010 00:21:36 +0000 Subject: [PATCH 3/4] ppc4xx: don't unregister RAM at reset Message-Id: <1280967697-1875-4-git-send-email-hollis@penguinppc.org> List-Id: References: <1280967697-1875-1-git-send-email-hollis@penguinppc.org> In-Reply-To: <1280967697-1875-1-git-send-email-hollis@penguinppc.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: qemu-devel@nongnu.org Cc: kvm-ppc@vger.kernel.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 --- 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