This function is no longer used.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/cpu.h | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 8f1afca2ae..e735357395 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -2571,22 +2571,6 @@ static inline int sme_vq(CPUARMState *env)
return EX_TBFLAG_A64(env->hflags, SVL) + 1;
}
-static inline bool bswap_code(bool sctlr_b)
-{
-#ifdef CONFIG_USER_ONLY
- /* BE8 (SCTLR.B = 0, TARGET_BIG_ENDIAN = 1) is mixed endian.
- * The invalid combination SCTLR.B=1/CPSR.E=1/TARGET_BIG_ENDIAN=0
- * would also end up as a mixed-endian mode with BE code, LE data.
- */
- return TARGET_BIG_ENDIAN ^ sctlr_b;
-#else
- /* All code access in ARM is little endian, and there are no loaders
- * doing swaps that need to be reversed
- */
- return 0;
-#endif
-}
-
enum {
QEMU_PSCI_CONDUIT_DISABLED = 0,
QEMU_PSCI_CONDUIT_SMC = 1,
--
2.43.0