mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
ppc/spapr: Move GPRs setup to one place
At the moment "pseries" starts in SLOF which only expects the FDT blob pointer in r3. As we are going to introduce a OpenFirmware support in QEMU, we will be booting OF clients directly and these expect a stack pointer in r1, Linux looks at r3/r4 for the initramdisk location (although vmlinux can find this from the device tree but zImage from distro kernels cannot). This extends spapr_cpu_set_entry_state() to take more registers. This should cause no behavioral change. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Message-Id: <20200310050733.29805-2-aik@ozlabs.ru> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
94f040aaec
commit
395a20d3cc
4 changed files with 10 additions and 4 deletions
|
@ -190,7 +190,7 @@ static void rtas_start_cpu(PowerPCCPU *callcpu, SpaprMachineState *spapr,
|
|||
*/
|
||||
newcpu->env.tb_env->tb_offset = callcpu->env.tb_env->tb_offset;
|
||||
|
||||
spapr_cpu_set_entry_state(newcpu, start, r3);
|
||||
spapr_cpu_set_entry_state(newcpu, start, 0, r3, 0);
|
||||
|
||||
qemu_cpu_kick(CPU(newcpu));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue