]> git.proxmox.com Git - qemu.git/commitdiff
PPC: e500: correct params->ram_size with ram_size
authorTiejun Chen <tiejun.chen@windriver.com>
Wed, 1 May 2013 15:22:59 +0000 (15:22 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 6 May 2013 15:22:48 +0000 (17:22 +0200)
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 <tiejun.chen@windriver.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/e500.c

index 2d474e512440a1afb752a11a708a2ff31d8d372e..c9ae51211e69ea2117ed0daf75efe4acc7af0a75 100644 (file)
@@ -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);