diff mbox series

[v2,22/28] target/xtensa: Remove MMU_MODE{0,1,2,3}_SUFFIX

Message ID 20191216221158.29572-23-richard.henderson@linaro.org
State Superseded
Headers show
Series cputlb: Remove support for MMU_MODE*_SUFFIX | expand

Commit Message

Richard Henderson Dec. 16, 2019, 10:11 p.m. UTC
The functions generated by these macros are unused.

Acked-by: Max Filippov <jcmvbkbc@gmail.com>

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/xtensa/cpu.h | 4 ----
 1 file changed, 4 deletions(-)

-- 
2.20.1

Comments

Alex Bennée Dec. 20, 2019, 7:30 p.m. UTC | #1
Richard Henderson <richard.henderson@linaro.org> writes:

> The functions generated by these macros are unused.

>

> Acked-by: Max Filippov <jcmvbkbc@gmail.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


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


> ---

>  target/xtensa/cpu.h | 4 ----

>  1 file changed, 4 deletions(-)

>

> diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h

> index b363ffcf10..f5a7ea48bb 100644

> --- a/target/xtensa/cpu.h

> +++ b/target/xtensa/cpu.h

> @@ -685,10 +685,6 @@ static inline uint32_t xtensa_replicate_windowstart(CPUXtensaState *env)

>  }

>  

>  /* MMU modes definitions */

> -#define MMU_MODE0_SUFFIX _ring0

> -#define MMU_MODE1_SUFFIX _ring1

> -#define MMU_MODE2_SUFFIX _ring2

> -#define MMU_MODE3_SUFFIX _ring3

>  #define MMU_USER_IDX 3

>  

>  static inline int cpu_mmu_index(CPUXtensaState *env, bool ifetch)



-- 
Alex Bennée
diff mbox series

Patch

diff --git a/target/xtensa/cpu.h b/target/xtensa/cpu.h
index b363ffcf10..f5a7ea48bb 100644
--- a/target/xtensa/cpu.h
+++ b/target/xtensa/cpu.h
@@ -685,10 +685,6 @@  static inline uint32_t xtensa_replicate_windowstart(CPUXtensaState *env)
 }
 
 /* MMU modes definitions */
-#define MMU_MODE0_SUFFIX _ring0
-#define MMU_MODE1_SUFFIX _ring1
-#define MMU_MODE2_SUFFIX _ring2
-#define MMU_MODE3_SUFFIX _ring3
 #define MMU_USER_IDX 3
 
 static inline int cpu_mmu_index(CPUXtensaState *env, bool ifetch)