[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 08/13] target/ppc: remove unused interrupts from ppc_pending_
From: |
Matheus Ferst |
Subject: |
[RFC PATCH 08/13] target/ppc: remove unused interrupts from ppc_pending_interrupt_p8 |
Date: |
Mon, 15 Aug 2022 13:20:14 -0300 |
The Hypervisor Virtualization Interrupt was introduced in PowerISA v3.0.
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 | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index 13c2d5e2ce..0dbd385bf0 100644
--- a/target/ppc/excp_helper.c
+++ b/target/ppc/excp_helper.c
@@ -1739,15 +1739,6 @@ static int ppc_pending_interrupt_p8(CPUPPCState *env)
}
}
- /* Hypervisor virtualization interrupt */
- if (env->pending_interrupts & PPC_INTERRUPT_HVIRT) {
- /* LPCR will be clear when not supported so this will work */
- bool hvice = !!(env->spr[SPR_LPCR] & LPCR_HVICE);
- if ((async_deliver || !FIELD_EX64_HV(env->msr)) && hvice) {
- return PPC_INTERRUPT_HVIRT;
- }
- }
-
/* External interrupt can ignore MSR:EE under some circumstances */
if (env->pending_interrupts & PPC_INTERRUPT_EXT) {
bool lpes0 = !!(env->spr[SPR_LPCR] & LPCR_LPES0);
@@ -1759,28 +1750,10 @@ static int ppc_pending_interrupt_p8(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;
}
- /* 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;
--
2.25.1
- Re: [RFC PATCH 03/13] target/ppc: move interrupt masking out of ppc_hw_interrupt, (continued)
[RFC PATCH 05/13] target/ppc: create an interrupt masking method for POWER9/POWER10, Matheus Ferst, 2022/08/15
[RFC PATCH 06/13] target/ppc: remove embedded interrupts from ppc_pending_interrupt_p9, Matheus Ferst, 2022/08/15
[RFC PATCH 07/13] target/ppc: create an interrupt masking method for POWER8, Matheus Ferst, 2022/08/15
[RFC PATCH 08/13] target/ppc: remove unused interrupts from ppc_pending_interrupt_p8,
Matheus Ferst <=
[RFC PATCH 09/13] target/ppc: create an interrupt masking method for POWER7, Matheus Ferst, 2022/08/15
[RFC PATCH 11/13] target/ppc: remove ppc_store_lpcr from CONFIG_USER_ONLY builds, Matheus Ferst, 2022/08/15
[RFC PATCH 10/13] target/ppc: remove unused interrupts from ppc_pending_interrupt_p7, Matheus Ferst, 2022/08/15
[RFC PATCH 12/13] target/ppc: introduce ppc_maybe_interrupt, Matheus Ferst, 2022/08/15
[RFC PATCH 13/13] target/ppc: unify cpu->has_work based on cs->interrupt_request, Matheus Ferst, 2022/08/15
Re: [RFC PATCH 00/13] PowerPC interrupt rework, Cédric Le Goater, 2022/08/15