diff mbox series

[v7,09/64] target/nios2: Remove user-only nios2_cpu_do_interrupt

Message ID 20220421151735.31996-10-richard.henderson@linaro.org
State Superseded
Headers show
Series nios2 fixes, cleanups, shadow reg sets | expand

Commit Message

Richard Henderson April 21, 2022, 3:16 p.m. UTC
Since 78271684719, this function is unused for user-only,
when the TCGCPUOps.do_interrupt hook itself became system-only.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/nios2/helper.c | 8 --------
 1 file changed, 8 deletions(-)

Comments

Peter Maydell April 22, 2022, 12:51 p.m. UTC | #1
On Thu, 21 Apr 2022 at 16:53, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Since 78271684719, this function is unused for user-only,
> when the TCGCPUOps.do_interrupt hook itself became system-only.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

(A no-hex-digits commit hash, how unusual...)

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
diff mbox series

Patch

diff --git a/target/nios2/helper.c b/target/nios2/helper.c
index e5c98650e1..678fd96c4e 100644
--- a/target/nios2/helper.c
+++ b/target/nios2/helper.c
@@ -30,14 +30,6 @@ 
 
 #if defined(CONFIG_USER_ONLY)
 
-void nios2_cpu_do_interrupt(CPUState *cs)
-{
-    Nios2CPU *cpu = NIOS2_CPU(cs);
-    CPUNios2State *env = &cpu->env;
-    cs->exception_index = -1;
-    env->regs[R_EA] = env->regs[R_PC] + 4;
-}
-
 void nios2_cpu_record_sigsegv(CPUState *cs, vaddr addr,
                               MMUAccessType access_type,
                               bool maperr, uintptr_t retaddr)