[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-7.1 v6 10/51] target/nios2: Remove cpu_interrupts_enabled
From: |
Richard Henderson |
Subject: |
[PATCH for-7.1 v6 10/51] target/nios2: Remove cpu_interrupts_enabled |
Date: |
Wed, 16 Mar 2022 22:04:57 -0700 |
This function is unused. The real computation of this value
is located in nios2_cpu_exec_interrupt.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/nios2/cpu.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/target/nios2/cpu.h b/target/nios2/cpu.h
index 9be128d63a..59e950dae6 100644
--- a/target/nios2/cpu.h
+++ b/target/nios2/cpu.h
@@ -226,11 +226,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;
--
2.25.1
- [PATCH for-7.1 v6 00/51] target/nios2: Shadow register set, EIC and VIC, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 01/51] tcg: Fix indirect lowering vs TCG_OPF_COND_BRANCH, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 03/51] target/nios2: Stop generating code if gen_check_supervisor fails, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 02/51] target/nios2: Check supervisor on eret, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 04/51] target/nios2: Add NUM_GP_REGS and NUM_CP_REGS, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 06/51] target/nios2: Split out helper for eret instruction, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 05/51] target/nios2: Split PC out of env->regs[], Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 07/51] target/nios2: Fix BRET instruction, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 08/51] target/nios2: Do not create TCGv for control registers, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 10/51] target/nios2: Remove cpu_interrupts_enabled,
Richard Henderson <=
- [PATCH for-7.1 v6 09/51] linux-user/nios2: Only initialize SP and PC in target_cpu_copy_regs, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 11/51] target/nios2: Split control registers away from general registers, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 12/51] target/nios2: Clean up nios2_cpu_dump_state, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 13/51] target/nios2: Use hw/registerfields.h for CR_STATUS fields, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 14/51] target/nios2: Use hw/registerfields.h for CR_EXCEPTION fields, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 15/51] target/nios2: Use hw/registerfields.h for CR_TLBADDR fields, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 16/51] target/nios2: Use hw/registerfields.h for CR_TLBACC fields, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 17/51] target/nios2: Rename CR_TLBMISC_WR to CR_TLBMISC_WE, Richard Henderson, 2022/03/17
- [PATCH for-7.1 v6 18/51] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields, Richard Henderson, 2022/03/17