mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
ppc/spapr: tweak change system reset helper
Rather than have the helper take an optional vector address override, instead have its caller modify env->nip itself. This is more consistent when adding pnv nmi support, and also with mce injection added later. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20200325144147.221875-2-npiggin@gmail.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
86962462f8
commit
b5b7f39181
3 changed files with 8 additions and 8 deletions
|
@ -983,15 +983,12 @@ static void ppc_hw_interrupt(CPUPPCState *env)
|
|||
}
|
||||
}
|
||||
|
||||
void ppc_cpu_do_system_reset(CPUState *cs, target_ulong vector)
|
||||
void ppc_cpu_do_system_reset(CPUState *cs)
|
||||
{
|
||||
PowerPCCPU *cpu = POWERPC_CPU(cs);
|
||||
CPUPPCState *env = &cpu->env;
|
||||
|
||||
powerpc_excp(cpu, env->excp_model, POWERPC_EXCP_RESET);
|
||||
if (vector != -1) {
|
||||
env->nip = vector;
|
||||
}
|
||||
}
|
||||
|
||||
void ppc_cpu_do_fwnmi_machine_check(CPUState *cs, target_ulong vector)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue