From: Tiejun Chen Date: Wed, 1 May 2013 15:22:59 +0000 (+0000) Subject: PPC: e500: correct params->ram_size with ram_size X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~900^2~59^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43d03f299a017186e00f47c5b10f732492d496a6;p=sdk%2Femulator%2Fqemu.git PPC: e500: correct params->ram_size with ram_size 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 --- diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 2d474e5124..c9ae51211e 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);