Commit 43d03f29 authored by Tiejun Chen's avatar Tiejun Chen Committed by Alexander Graf
Browse files

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: default avatarTiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 04559d52
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);