From: James Hogan Date: Mon, 12 Oct 2015 16:54:39 +0000 (+0100) Subject: hw/mips_malta: Fix KVM PC initialisation X-Git-Tag: v2.5.0-rc0~39^2~4 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ca2f6bbbce32b7e1ba4fdaf54165ab0dee47a3a5;p=qemu-xen-unstable.git hw/mips_malta: Fix KVM PC initialisation Commit 71c199c81d29 ("mips_malta: provide ememsize env variable to kernels") changed the meaning of loaderparams.ram_size to be the whole of RAM rather than just the low part below where the boot code is placed for KVM, but it didn't update the PC initialisation for KVM to use ram_low_size. Fix that now. Fixes: 71c199c81d29 ("mips_malta: provide ememsize env variable to kernels") Signed-off-by: James Hogan Cc: Paul Burton Cc: Leon Alrae Cc: Aurelien Jarno Reviewed-by: Aurelien Jarno Reviewed-by: Leon Alrae Signed-off-by: Leon Alrae --- diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index c1f570a79f..91c36baa55 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -901,7 +901,7 @@ static void main_cpu_reset(void *opaque) if (kvm_enabled()) { /* Start running from the bootloader we wrote to end of RAM */ - env->active_tc.PC = 0x40000000 + loaderparams.ram_size; + env->active_tc.PC = 0x40000000 + loaderparams.ram_low_size; } }