[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 19/19] target/arm: don't access TCG code when debugging wi
From: |
Fabiano Rosas |
Subject: |
[RFC PATCH v2 19/19] target/arm: don't access TCG code when debugging with KVM |
Date: |
Mon, 9 Jan 2023 19:42:32 -0300 |
When TCG is disabled this part of the code should not be reachable, so
wrap it with an ifdef for now.
This allows us to start using CONFIG_TCG=n (--disable-tcg in the
configure line).
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/ptw.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/arm/ptw.c b/target/arm/ptw.c
index 4bda0590c7..2af75d0904 100644
--- a/target/arm/ptw.c
+++ b/target/arm/ptw.c
@@ -254,6 +254,7 @@ static bool S1_ptw_translate(CPUARMState *env, S1Translate
*ptw,
ptw->out_host = NULL;
ptw->out_rw = false;
} else {
+#ifdef CONFIG_TCG
CPUTLBEntryFull *full;
int flags;
@@ -270,6 +271,9 @@ static bool S1_ptw_translate(CPUARMState *env, S1Translate
*ptw,
ptw->out_rw = full->prot & PAGE_WRITE;
pte_attrs = full->pte_attrs;
pte_secure = full->attrs.secure;
+#else
+ g_assert_not_reached();
+#endif
}
if (regime_is_stage2(s2_mmu_idx)) {
--
2.35.3
[RFC PATCH v2 14/19] tests: do not run qom-test on all machines for ARM KVM-only, Fabiano Rosas, 2023/01/09
[RFC PATCH v2 15/19] tests: device-introspect-test: cope with ARM TCG-only devices, Fabiano Rosas, 2023/01/09
[RFC PATCH v2 16/19] tests/tcg: Do not build/run TCG tests if TCG is disabled, Fabiano Rosas, 2023/01/09
[RFC PATCH v2 17/19] target/arm: Move regime_using_lpae_format into internal.h, Fabiano Rosas, 2023/01/09
[RFC PATCH v2 18/19] cpu-defs.h: Expose CPUTLBEntryFull to non-TCG code, Fabiano Rosas, 2023/01/09
[RFC PATCH v2 19/19] target/arm: don't access TCG code when debugging with KVM,
Fabiano Rosas <=