]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Don't access TCG code when debugging with KVM
authorFabiano Rosas <farosas@suse.de>
Fri, 17 Feb 2023 20:11:35 +0000 (17:11 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 3 Nov 2023 16:18:23 +0000 (19:18 +0300)
When TCG is disabled this part of the code should not be reachable, so
wrap it with an ifdef for now.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 0d3de77a07f4f774f7a9248afa8ea497ad5f2ae5)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: trivial change which makes two subsequent cherry-picks to apply cleanly)

target/arm/ptw.c

index 0b1606855752937ee6013e7a90800fb967027ae0..fa013044c15f39f7b295b3ee37329993039d34c7 100644 (file)
@@ -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)) {