[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 21/68] target/nios2: Remove cpu_interrupts_enabled
From: |
Richard Henderson |
Subject: |
[PULL 21/68] target/nios2: Remove cpu_interrupts_enabled |
Date: |
Tue, 26 Apr 2022 11:18:20 -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>
Message-Id: <20220421151735.31996-22-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 7c48b3452f..6bd8367eb8 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;
--
2.34.1
- [PULL 11/68] target/nios2: Build helper.c for system only, (continued)
- [PULL 11/68] target/nios2: Build helper.c for system only, Richard Henderson, 2022/04/26
- [PULL 17/68] target/nios2: Split out helper for eret instruction, Richard Henderson, 2022/04/26
- [PULL 03/68] linux-user/nios2: Drop syscall 0 "workaround", Richard Henderson, 2022/04/26
- [PULL 02/68] linux-user/nios2: Fix clone child return, Richard Henderson, 2022/04/26
- [PULL 06/68] linux-user/nios2: Remove do_sigreturn, Richard Henderson, 2022/04/26
- [PULL 10/68] target/nios2: Remove nios2_cpu_record_sigsegv, Richard Henderson, 2022/04/26
- [PULL 13/68] target/nios2: Check supervisor on eret, Richard Henderson, 2022/04/26
- [PULL 14/68] target/nios2: Stop generating code if gen_check_supervisor fails, Richard Henderson, 2022/04/26
- [PULL 18/68] target/nios2: Fix BRET instruction, Richard Henderson, 2022/04/26
- [PULL 20/68] linux-user/nios2: Only initialize SP and PC in target_cpu_copy_regs, Richard Henderson, 2022/04/26
- [PULL 21/68] target/nios2: Remove cpu_interrupts_enabled,
Richard Henderson <=
- [PULL 23/68] target/nios2: Clean up nios2_cpu_dump_state, Richard Henderson, 2022/04/26
- [PULL 25/68] target/nios2: Use hw/registerfields.h for CR_EXCEPTION fields, Richard Henderson, 2022/04/26
- [PULL 28/68] target/nios2: Rename CR_TLBMISC_WR to CR_TLBMISC_WE, Richard Henderson, 2022/04/26
- [PULL 29/68] target/nios2: Use hw/registerfields.h for CR_TLBMISC fields, Richard Henderson, 2022/04/26
- [PULL 38/68] target/nios2: Implement cpuid, Richard Henderson, 2022/04/26
- [PULL 32/68] target/nios2: Clean up nios2_cpu_do_interrupt, Richard Henderson, 2022/04/26
- [PULL 37/68] target/nios2: Prevent writes to read-only or reserved control fields, Richard Henderson, 2022/04/26
- [PULL 39/68] target/nios2: Implement CR_STATUS.RSIE, Richard Henderson, 2022/04/26
- [PULL 09/68] target/nios2: Remove user-only nios2_cpu_do_interrupt, Richard Henderson, 2022/04/26
- [PULL 15/68] target/nios2: Add NUM_GP_REGS and NUM_CP_REGS, Richard Henderson, 2022/04/26