aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc
diff options
context:
space:
mode:
authorTiejun Chen <tiejun.chen@windriver.com>2013-05-01 15:22:59 +0000
committerAlexander Graf <agraf@suse.de>2013-05-06 17:22:48 +0200
commit43d03f299a017186e00f47c5b10f732492d496a6 (patch)
treef982b52f30a52091b8712510ccbbc956c408da00 /hw/ppc
parent04559d5210860ea5853db09c75ea8ff2f8843e16 (diff)
downloadqemu-43d03f299a017186e00f47c5b10f732492d496a6.zip
qemu-43d03f299a017186e00f47c5b10f732492d496a6.tar.gz
qemu-43d03f299a017186e00f47c5b10f732492d496a6.tar.bz2
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>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/e500.c1
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);