[PATCH v2 17/28] target/cris: Remove MMU_MODE{0,1}_SUFFIX

Richard Henderson posted 28 patches 6 years, 1 month ago
There is a newer version of this series
[PATCH v2 17/28] target/cris: Remove MMU_MODE{0,1}_SUFFIX
Posted by Richard Henderson 6 years, 1 month ago
The functions generated by these macros are unused.

Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/cris/cpu.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target/cris/cpu.h b/target/cris/cpu.h
index aba0a66474..bc43bc23a1 100644
--- a/target/cris/cpu.h
+++ b/target/cris/cpu.h
@@ -252,8 +252,6 @@ enum {
 #define cpu_signal_handler cpu_cris_signal_handler
 
 /* MMU modes definitions */
-#define MMU_MODE0_SUFFIX _kernel
-#define MMU_MODE1_SUFFIX _user
 #define MMU_USER_IDX 1
 static inline int cpu_mmu_index (CPUCRISState *env, bool ifetch)
 {
-- 
2.20.1


Re: [PATCH v2 17/28] target/cris: Remove MMU_MODE{0,1}_SUFFIX
Posted by Alex Bennée 6 years, 1 month ago
Richard Henderson <richard.henderson@linaro.org> writes:

> The functions generated by these macros are unused.
>
> Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

> ---
>  target/cris/cpu.h | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/target/cris/cpu.h b/target/cris/cpu.h
> index aba0a66474..bc43bc23a1 100644
> --- a/target/cris/cpu.h
> +++ b/target/cris/cpu.h
> @@ -252,8 +252,6 @@ enum {
>  #define cpu_signal_handler cpu_cris_signal_handler
>  
>  /* MMU modes definitions */
> -#define MMU_MODE0_SUFFIX _kernel
> -#define MMU_MODE1_SUFFIX _user
>  #define MMU_USER_IDX 1
>  static inline int cpu_mmu_index (CPUCRISState *env, bool ifetch)
>  {


-- 
Alex Bennée