target/ppc: Remove unneeded parameter from powerpc_reset_wakeup()
CPUState is rarely needed by this function (only for logging a fatal error) and it's easy to get from the env parameter so passing it separately is not necessary. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Acked-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <f42761401c708fd6e02f7523d9f709b1972e5863.1686868895.git.balaton@eik.bme.hu> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
2306c60633
commit
3f88a89d10
@ -187,8 +187,7 @@ static void ppc_excp_debug_sw_tlb(CPUPPCState *env, int excp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(TARGET_PPC64)
|
#if defined(TARGET_PPC64)
|
||||||
static int powerpc_reset_wakeup(CPUState *cs, CPUPPCState *env, int excp,
|
static int powerpc_reset_wakeup(CPUPPCState *env, int excp, target_ulong *msr)
|
||||||
target_ulong *msr)
|
|
||||||
{
|
{
|
||||||
/* We no longer are in a PM state */
|
/* We no longer are in a PM state */
|
||||||
env->resume_as_sreset = false;
|
env->resume_as_sreset = false;
|
||||||
@ -223,8 +222,8 @@ static int powerpc_reset_wakeup(CPUState *cs, CPUPPCState *env, int excp,
|
|||||||
*msr |= SRR1_WAKEHVI;
|
*msr |= SRR1_WAKEHVI;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
cpu_abort(cs, "Unsupported exception %d in Power Save mode\n",
|
cpu_abort(env_cpu(env),
|
||||||
excp);
|
"Unsupported exception %d in Power Save mode\n", excp);
|
||||||
}
|
}
|
||||||
return POWERPC_EXCP_RESET;
|
return POWERPC_EXCP_RESET;
|
||||||
}
|
}
|
||||||
@ -1440,7 +1439,7 @@ static void powerpc_excp_books(PowerPCCPU *cpu, int excp)
|
|||||||
* P7/P8/P9
|
* P7/P8/P9
|
||||||
*/
|
*/
|
||||||
if (env->resume_as_sreset) {
|
if (env->resume_as_sreset) {
|
||||||
excp = powerpc_reset_wakeup(cs, env, excp, &msr);
|
excp = powerpc_reset_wakeup(env, excp, &msr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user