qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 06/13] target/ppc: remove embedded interrupts from ppc_pe


From: Fabiano Rosas
Subject: Re: [RFC PATCH 06/13] target/ppc: remove embedded interrupts from ppc_pending_interrupt_p9
Date: Mon, 15 Aug 2022 18:23:41 -0300

Matheus Ferst <matheus.ferst@eldorado.org.br> writes:

> Critical Input, Watchdog Timer, and Fixed Interval Timer are only
> defined for embedded CPUs. The Programmable Interval Timer is 40x-only.
>
> Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
> ---
>  target/ppc/excp_helper.c | 18 ------------------
>  1 file changed, 18 deletions(-)
>
> diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
> index 2ca6a917b2..42b57019ba 100644
> --- a/target/ppc/excp_helper.c
> +++ b/target/ppc/excp_helper.c
> @@ -1780,28 +1780,10 @@ static int ppc_pending_interrupt_p9(CPUPPCState *env)
>              return PPC_INTERRUPT_EXT;
>          }
>      }
> -    if (FIELD_EX64(env->msr, MSR, CE)) {
> -        /* External critical interrupt */
> -        if (env->pending_interrupts & PPC_INTERRUPT_CEXT) {
> -            return PPC_INTERRUPT_CEXT;
> -        }
> -    }
>      if (async_deliver != 0) {
> -        /* Watchdog timer on embedded PowerPC */
> -        if (env->pending_interrupts & PPC_INTERRUPT_WDT) {
> -            return PPC_INTERRUPT_WDT;
> -        }
>          if (env->pending_interrupts & PPC_INTERRUPT_CDOORBELL) {
>              return PPC_INTERRUPT_CDOORBELL;
>          }

This one too.

And the Thermal.

> -        /* Fixed interval timer on embedded PowerPC */
> -        if (env->pending_interrupts & PPC_INTERRUPT_FIT) {
> -            return PPC_INTERRUPT_FIT;
> -        }
> -        /* Programmable interval timer on embedded PowerPC */
> -        if (env->pending_interrupts & PPC_INTERRUPT_PIT) {
> -            return PPC_INTERRUPT_PIT;
> -        }
>          /* Decrementer exception */
>          if (env->pending_interrupts & PPC_INTERRUPT_DECR) {
>              return PPC_INTERRUPT_DECR;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]