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 <tiejun.chen@windriver.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Tiejun Chen 2013-05-01 15:22:59 +00:00 committed by Alexander Graf
parent 04559d5210
commit 43d03f299a

View File

@ -547,6 +547,7 @@ void ppce500_init(PPCE500Params *params)
/* Fixup Memory size on a alignment boundary */ /* Fixup Memory size on a alignment boundary */
ram_size &= ~(RAM_SIZES_ALIGN - 1); ram_size &= ~(RAM_SIZES_ALIGN - 1);
params->ram_size = ram_size;
/* Register Memory */ /* Register Memory */
memory_region_init_ram(ram, "mpc8544ds.ram", ram_size); memory_region_init_ram(ram, "mpc8544ds.ram", ram_size);