[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 18/38] target/arm: make arm_casq_ptw CONFIG_TCG only
From: |
Alex Bennée |
Subject: |
[PULL 18/38] target/arm: make arm_casq_ptw CONFIG_TCG only |
Date: |
Mon, 3 Jul 2023 14:44:07 +0100 |
The ptw code is accessed by non-TCG code (specifically arm_pamax and
arm_cpu_get_phys_page_attrs_debug) but most of it is really only for
TCG emulation. Seeing as we already assert for a non TARGET_AARCH64
build lets extend the test rather than further messing with the ifdef
ladder.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230630180423.558337-19-alex.bennee@linaro.org>
diff --git a/target/arm/ptw.c b/target/arm/ptw.c
index 6015121b99..42355caa9b 100644
--- a/target/arm/ptw.c
+++ b/target/arm/ptw.c
@@ -628,7 +628,7 @@ static uint64_t arm_casq_ptw(CPUARMState *env, uint64_t
old_val,
uint64_t new_val, S1Translate *ptw,
ARMMMUFaultInfo *fi)
{
-#ifdef TARGET_AARCH64
+#if defined(TARGET_AARCH64) && defined(CONFIG_TCG)
uint64_t cur_val;
void *host = ptw->out_host;
@@ -709,7 +709,7 @@ static uint64_t arm_casq_ptw(CPUARMState *env, uint64_t
old_val,
return cur_val;
#else
- /* AArch32 does not have FEAT_HADFS. */
+ /* AArch32 does not have FEAT_HADFS; non-TCG guests only use debug-mode. */
g_assert_not_reached();
#endif
}
--
2.39.2
- [PULL 19/38] plugins: force slow path when plugins instrument memory ops, (continued)
- [PULL 19/38] plugins: force slow path when plugins instrument memory ops, Alex Bennée, 2023/07/03
- [PULL 33/38] linux-user: Emulate /proc/self/smaps, Alex Bennée, 2023/07/03
- [PULL 31/38] linux-user: Expose do_guest_openat() and do_guest_readlink(), Alex Bennée, 2023/07/03
- [PULL 13/38] tests/lcitool: add an explicit gcc-native package, Alex Bennée, 2023/07/03
- [PULL 27/38] docs/devel: introduce some key concepts for QOM development, Alex Bennée, 2023/07/03
- [PULL 20/38] plugins: fix memory leak while parsing options, Alex Bennée, 2023/07/03
- [PULL 29/38] gdbstub: Permit reverse step/break to provide stop response, Alex Bennée, 2023/07/03
- [PULL 18/38] target/arm: make arm_casq_ptw CONFIG_TCG only,
Alex Bennée <=
- [PULL 35/38] gdbstub: Report the actual qemu-user pid, Alex Bennée, 2023/07/03
- [PULL 24/38] include/hw/qdev-core: fixup kerneldoc annotations, Alex Bennée, 2023/07/03
- [PULL 26/38] docs/devel: split qom-api reference into new file, Alex Bennée, 2023/07/03
- [PULL 30/38] gdbstub: clean-up vcont handling to avoid goto, Alex Bennée, 2023/07/03
- [PULL 34/38] gdbstub: Expose gdb_get_process() and gdb_get_first_cpu_in_process(), Alex Bennée, 2023/07/03
- [PULL 36/38] gdbstub: Add support for info proc mappings, Alex Bennée, 2023/07/03
- [PULL 25/38] docs/devel/qom.rst: Correct code style, Alex Bennée, 2023/07/03
- [PULL 22/38] docs/devel: add some front matter to the devel index, Alex Bennée, 2023/07/03
- [PULL 32/38] linux-user: Add "safe" parameter to do_guest_openat(), Alex Bennée, 2023/07/03
- [PULL 23/38] include/migration: mark vmstate_register() as a legacy function, Alex Bennée, 2023/07/03