Received: from [140.186.70.92] (port=45313 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oeeg0-0004D8-5C for qemu-devel@nongnu.org; Thu, 29 Jul 2010 21:46:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oeefz-0003RP-43 for qemu-devel@nongnu.org; Thu, 29 Jul 2010 21:46:20 -0400 Received: from qmta08.emeryville.ca.mail.comcast.net ([76.96.30.80]:33234) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oeefy-0003Nv-RG for qemu-devel@nongnu.org; Thu, 29 Jul 2010 21:46:19 -0400 From: Hollis Blanchard Date: Thu, 29 Jul 2010 18:45:37 -0700 Message-Id: <1280454337-30919-2-git-send-email-hollis@penguinppc.org> In-Reply-To: <1280454337-30919-1-git-send-email-hollis@penguinppc.org> References: <1280454337-30919-1-git-send-email-hollis@penguinppc.org> Subject: [Qemu-devel] [PATCH] ppc4xx: correct SDRAM controller warning message condition List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hollis Blanchard , Hollis Blanchard From: Hollis Blanchard The message "Truncating memory to %d MiB to fit SDRAM controller limits" should be displayed only when a user chooses an amount of RAM which can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which would only be valid if the controller supports a bank size of 1MB). Signed-off-by: Hollis Blanchard --- hw/ppc4xx_devs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppc4xx_devs.c b/hw/ppc4xx_devs.c index b15db81..be130c4 100644 --- a/hw/ppc4xx_devs.c +++ b/hw/ppc4xx_devs.c @@ -684,7 +684,7 @@ ram_addr_t ppc4xx_sdram_adjust(ram_addr_t ram_size, int nr_banks, } ram_size -= size_left; - if (ram_size) + if (size_left) printf("Truncating memory to %d MiB to fit SDRAM controller limits.\n", (int)(ram_size >> 20)); -- 1.7.1.1