[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v12 65/65] target/arm: remove v7m stub function for !CONFIG_TCG
From: |
Claudio Fontana |
Subject: |
[RFC v12 65/65] target/arm: remove v7m stub function for !CONFIG_TCG |
Date: |
Fri, 26 Mar 2021 20:37:01 +0100 |
it is needed just once, so just move the CONFIG_TCG check in place.
Signed-off-by: Claudio Fontana <cfontana@suse.de>
---
target/arm/cpu-mmu.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/target/arm/cpu-mmu.c b/target/arm/cpu-mmu.c
index c6ac90a61e..9969bc9d30 100644
--- a/target/arm/cpu-mmu.c
+++ b/target/arm/cpu-mmu.c
@@ -155,21 +155,16 @@ int arm_mmu_idx_to_el(ARMMMUIdx mmu_idx)
}
}
-#ifndef CONFIG_TCG
-ARMMMUIdx arm_v7m_mmu_idx_for_secstate(CPUARMState *env, bool secstate)
-{
- g_assert_not_reached();
-}
-#endif
-
ARMMMUIdx arm_mmu_idx_el(CPUARMState *env, int el)
{
ARMMMUIdx idx;
uint64_t hcr;
+#ifdef CONFIG_TCG
if (arm_feature(env, ARM_FEATURE_M)) {
return arm_v7m_mmu_idx_for_secstate(env, env->v7m.secure);
}
+#endif /* CONFIG_TCG */
/* See ARM pseudo-function ELIsInHost. */
switch (el) {
--
2.26.2
- [RFC v12 57/65] target/arm: tcg-sve: import narrow_vq and change_el functions, (continued)
- [RFC v12 57/65] target/arm: tcg-sve: import narrow_vq and change_el functions, Claudio Fontana, 2021/03/26
- [RFC v12 58/65] target/arm: tcg-sve: rename the narrow_vq and change_el functions, Claudio Fontana, 2021/03/26
- [RFC v12 60/65] target/arm: cpu-pauth: new module for ARMv8.3 Pointer Authentication, Claudio Fontana, 2021/03/26
- [RFC v12 62/65] target/arm: refactor arm_cpu_finalize_features into cpu64, Claudio Fontana, 2021/03/26
- [RFC v12 63/65] XXX target/arm: experiment refactoring cpu "max", Claudio Fontana, 2021/03/26
- [RFC v12 65/65] target/arm: remove v7m stub function for !CONFIG_TCG,
Claudio Fontana <=
- [RFC v12 61/65] cpu-sve: rename sve_zcr_len_for_el to cpu_sve_get_zcr_len_for_el, Claudio Fontana, 2021/03/26
- [RFC v12 59/65] target/arm: move sve_zcr_len_for_el to TARGET_AARCH64-only cpu-sve, Claudio Fontana, 2021/03/26
- [RFC v12 64/65] target/arm: tcg: remove superfluous CONFIG_TCG check, Claudio Fontana, 2021/03/26
- Re: [RFC v12 00/65] arm cleanup experiment for kvm-only build, Richard Henderson, 2021/03/28