From: Richard Henderson Date: Thu, 21 Apr 2022 15:16:52 +0000 (-0700) Subject: target/nios2: Remove cpu_interrupts_enabled X-Git-Tag: v7.1.0-rc0~128^2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e237ac34db57078f8c8c167ea24acee71394dc2a;p=thirdparty%2Fqemu.git target/nios2: Remove cpu_interrupts_enabled This function is unused. The real computation of this value is located in nios2_cpu_exec_interrupt. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-Id: <20220421151735.31996-22-richard.henderson@linaro.org> --- diff --git a/target/nios2/cpu.h b/target/nios2/cpu.h index 7c48b3452fe..6bd8367eb8d 100644 --- a/target/nios2/cpu.h +++ b/target/nios2/cpu.h @@ -222,11 +222,6 @@ bool nios2_cpu_tlb_fill(CPUState *cs, vaddr address, int size, bool probe, uintptr_t retaddr); #endif -static inline int cpu_interrupts_enabled(CPUNios2State *env) -{ - return env->regs[CR_STATUS] & CR_STATUS_PIE; -} - typedef CPUNios2State CPUArchState; typedef Nios2CPU ArchCPU;