[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 04/10] target/ppc: Use env_cpu for cpu_abort in excp_helper
From: |
Nicholas Piggin |
Subject: |
Re: [PATCH 04/10] target/ppc: Use env_cpu for cpu_abort in excp_helper |
Date: |
Wed, 14 Jun 2023 13:36:25 +1000 |
On Mon Jun 12, 2023 at 8:42 AM AEST, BALATON Zoltan wrote:
> Use the env_cpu function to get the CPUState for cpu_abort. These are
> only needed in case of fatal errors so this allows to avoid casting
> and storing CPUState in a local variable wnen not needed.
I don't entirely mind keeping cs around as a variable...
Thanks,
Nick
>
> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
> ---
> target/ppc/excp_helper.c | 118 +++++++++++++++++++++------------------
> 1 file changed, 63 insertions(+), 55 deletions(-)
>
> diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
> index e4532f5088..51202f7028 100644
> --- a/target/ppc/excp_helper.c
> +++ b/target/ppc/excp_helper.c
> @@ -422,7 +422,6 @@ static void powerpc_checkstop_state(CPUPPCState *env)
>
> static void powerpc_excp_40x(PowerPCCPU *cpu, int excp)
> {
> - CPUState *cs = CPU(cpu);
> CPUPPCState *env = &cpu->env;
> target_ulong msr, new_msr, vector;
> int srr0, srr1;
[snip]
- Re: [PATCH 08/10] target/ppc: Fix gen_sc to use correct nip, (continued)
[PATCH 03/10] target/ppc: Move common check in exception handlers to a function, BALATON Zoltan, 2023/06/11
[PATCH 04/10] target/ppc: Use env_cpu for cpu_abort in excp_helper, BALATON Zoltan, 2023/06/11
- Re: [PATCH 04/10] target/ppc: Use env_cpu for cpu_abort in excp_helper,
Nicholas Piggin <=
[PATCH 05/10] target/ppc: Change parameter of cpu_interrupt_exittb() to an env pointer, BALATON Zoltan, 2023/06/11
[PATCH 09/10] target/ppc: Simplify syscall exception handlers, BALATON Zoltan, 2023/06/11
[PATCH 10/10] target/ppc: Get CPUState in one step, BALATON Zoltan, 2023/06/11