mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 12:23:36 +08:00
hw/mips_malta: Fix KVM PC initialisation
Commit71c199c81d
("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:71c199c81d
("mips_malta: provide ememsize env variable to kernels") Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Paul Burton <paul.burton@imgtec.com> Cc: Leon Alrae <leon.alrae@imgtec.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Leon Alrae <leon.alrae@imgtec.com> Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
This commit is contained in:
parent
dbd8af9824
commit
ca2f6bbbce
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user