[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 09/29] target/ppc: remove generic architecture checks
From: |
Fabiano Rosas |
Subject: |
Re: [RFC PATCH v2 09/29] target/ppc: remove generic architecture checks from p9_deliver_interrupt |
Date: |
Fri, 30 Sep 2022 15:13:32 -0300 |
Matheus Ferst <matheus.ferst@eldorado.org.br> writes:
> No functional change intended.
>
> Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
> ---
> target/ppc/excp_helper.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
> diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
> index 603c956588..67e73f30ab 100644
> --- a/target/ppc/excp_helper.c
> +++ b/target/ppc/excp_helper.c
> @@ -1919,18 +1919,11 @@ static void p9_deliver_interrupt(CPUPPCState *env,
> int interrupt)
> break;
>
> case PPC_INTERRUPT_DECR: /* Decrementer exception */
> - if (ppc_decr_clear_on_delivery(env)) {
> - env->pending_interrupts &= ~PPC_INTERRUPT_DECR;
> - }
Maybe I'm missing something, but this should continue to clear the bit,
no? Same comment for P8.
> powerpc_excp(cpu, POWERPC_EXCP_DECR);
> break;
> case PPC_INTERRUPT_DOORBELL:
> env->pending_interrupts &= ~PPC_INTERRUPT_DOORBELL;
> - if (is_book3s_arch2x(env)) {
> - powerpc_excp(cpu, POWERPC_EXCP_SDOOR);
> - } else {
> - powerpc_excp(cpu, POWERPC_EXCP_DOORI);
> - }
> + powerpc_excp(cpu, POWERPC_EXCP_SDOOR);
> break;
> case PPC_INTERRUPT_HDOORBELL:
> env->pending_interrupts &= ~PPC_INTERRUPT_HDOORBELL;
- [RFC PATCH v2 02/29] target/ppc: always use ppc_set_irq to set env->pending_interrupts, (continued)
- [RFC PATCH v2 02/29] target/ppc: always use ppc_set_irq to set env->pending_interrupts, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 06/29] target/ppc: remove unused interrupts from p9_pending_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 03/29] target/ppc: split interrupt masking and delivery from ppc_hw_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 04/29] target/ppc: prepare to split interrupt masking and delivery by excp_model, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 05/29] target/ppc: create an interrupt masking method for POWER9/POWER10, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 08/29] target/ppc: remove unused interrupts from p9_deliver_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 07/29] target/ppc: create an interrupt delivery method for POWER9/POWER10, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 09/29] target/ppc: remove generic architecture checks from p9_deliver_interrupt, Matheus Ferst, 2022/09/27
- Re: [RFC PATCH v2 09/29] target/ppc: remove generic architecture checks from p9_deliver_interrupt,
Fabiano Rosas <=
- [RFC PATCH v2 10/29] target/ppc: move power-saving interrupt masking out of cpu_has_work_POWER9, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 11/29] target/ppc: add power-saving interrupt masking logic to p9_next_unmasked_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 12/29] target/ppc: create an interrupt masking method for POWER8, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 13/29] target/ppc: remove unused interrupts from p8_pending_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 14/29] target/ppc: create an interrupt delivery method for POWER8, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 18/29] target/ppc: add power-saving interrupt masking logic to p8_next_unmasked_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 15/29] target/ppc: remove unused interrupts from p8_deliver_interrupt, Matheus Ferst, 2022/09/27
- [RFC PATCH v2 17/29] target/ppc: move power-saving interrupt masking out of cpu_has_work_POWER8, Matheus Ferst, 2022/09/27