[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 8/9] PPC: e500: correct params->ram_size with ram_size
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 8/9] PPC: e500: correct params->ram_size with ram_size |
Date: |
Mon, 6 May 2013 17:25:16 +0200 |
From: Tiejun Chen <address@hidden>
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 <address@hidden>
Signed-off-by: Alexander Graf <address@hidden>
---
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
- [Qemu-ppc] [PULL 1.5 0/9] ppc patch queue 2013-05-06, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 8/9] PPC: e500: correct params->ram_size with ram_size,
Alexander Graf <=
- [Qemu-ppc] [PATCH 7/9] target-ppc: Add read and write of PPR SPR, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 3/9] PPC: e500: initialize GPRs as per epapr, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 1/9] pseries: Factor out check for out-of-bounds LIOBN, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 9/9] spapr_llan: fix device reenabling, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 5/9] PPC: Add MMU type for 2.06 with AMR but no TB pages, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 2/9] pseries: Fix debug message for out-of-bounds address in H_PUT_TCE, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 6/9] target-ppc: Fix invalid SPR read/write warnings, Alexander Graf, 2013/05/06
- [Qemu-ppc] [PATCH 4/9] pseries: Update SLOF firmware image, Alexander Graf, 2013/05/06
- Re: [Qemu-ppc] [PULL 1.5 0/9] ppc patch queue 2013-05-06, Aurelien Jarno, 2013/05/06