From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UZNI4-0002nl-1i for qemu-devel@nongnu.org; Mon, 06 May 2013 11:25:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UZNI2-0001Wt-Bo for qemu-devel@nongnu.org; Mon, 06 May 2013 11:25:23 -0400 From: Alexander Graf Date: Mon, 6 May 2013 17:25:16 +0200 Message-Id: <1367853917-2015-9-git-send-email-agraf@suse.de> In-Reply-To: <1367853917-2015-1-git-send-email-agraf@suse.de> References: <1367853917-2015-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 8/9] PPC: e500: correct params->ram_size with ram_size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org Cc: blauwirbel@gmail.com, Tiejun Chen , anthony@codemonkey.ws, qemu-devel@nongnu.org, aurelien@aurel32.net From: Tiejun Chen We should sync params->ram_size after we fixup memory size on a alignment boundary. Otherwise Guest would exceed the actual memory region. Signed-off-by: Tiejun Chen Signed-off-by: Alexander Graf --- hw/ppc/e500.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 2d474e5..c9ae512 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -547,6 +547,7 @@ void ppce500_init(PPCE500Params *params) /* Fixup Memory size on a alignment boundary */ ram_size &= ~(RAM_SIZES_ALIGN - 1); + params->ram_size = ram_size; /* Register Memory */ memory_region_init_ram(ram, "mpc8544ds.ram", ram_size); -- 1.6.0.2