[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 04/10] target/arm: gdbstub: Guard M-profile code with CONFIG_T
From: |
Fabiano Rosas |
Subject: |
[PATCH v9 04/10] target/arm: gdbstub: Guard M-profile code with CONFIG_TCG |
Date: |
Mon, 13 Mar 2023 12:10:52 -0300 |
This code is only relevant when TCG is present in the build. We're
about to enable the build with --disable-tcg, so avoid the error:
libqemu-aarch64-softmmu.fa.p/target_arm_gdbstub.c.o: in function
`m_sysreg_ptr': ../target/arm/gdbstub.c:356: undefined reference to
`arm_v7m_get_sp_ptr'
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
target/arm/gdbstub.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/arm/gdbstub.c b/target/arm/gdbstub.c
index 78105b8078..36a1d7dbc5 100644
--- a/target/arm/gdbstub.c
+++ b/target/arm/gdbstub.c
@@ -323,6 +323,7 @@ static int arm_gen_dynamic_sysreg_xml(CPUState *cs, int
base_reg)
return cpu->dyn_sysreg_xml.num;
}
+#ifdef CONFIG_TCG
typedef enum {
M_SYSREG_MSP,
M_SYSREG_PSP,
@@ -480,6 +481,7 @@ static int arm_gen_dynamic_m_secextreg_xml(CPUState *cs,
int orig_base_reg)
return cpu->dyn_m_secextreg_xml.num;
}
#endif
+#endif /* CONFIG_TCG */
const char *arm_gdb_get_dynamic_xml(CPUState *cs, const char *xmlname)
{
@@ -554,6 +556,7 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
arm_gen_dynamic_sysreg_xml(cs, cs->gdb_num_regs),
"system-registers.xml", 0);
+#ifdef CONFIG_TCG
if (arm_feature(env, ARM_FEATURE_M)) {
gdb_register_coprocessor(cs,
arm_gdb_get_m_systemreg, arm_gdb_set_m_systemreg,
@@ -568,4 +571,5 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
}
#endif
}
+#endif
}
--
2.35.3
- [PATCH v9 00/10] target/arm: Allow CONFIG_TCG=n builds, Fabiano Rosas, 2023/03/13
- [PATCH v9 01/10] target/arm: Move cortex sysregs into a separate file, Fabiano Rosas, 2023/03/13
- [PATCH v9 02/10] target/arm: Move 64-bit TCG CPUs into tcg/, Fabiano Rosas, 2023/03/13
- [PATCH v9 03/10] target/arm: move cpu_tcg to tcg/cpu32.c, Fabiano Rosas, 2023/03/13
- [PATCH v9 04/10] target/arm: gdbstub: Guard M-profile code with CONFIG_TCG,
Fabiano Rosas <=
- [PATCH v9 05/10] target/arm: gdbstub: Guard pauth code with CONFIG_TCG, Fabiano Rosas, 2023/03/13
- [PATCH v9 06/10] tests/qtest: Fix tests when no KVM or TCG are present, Fabiano Rosas, 2023/03/13
- [PATCH v9 07/10] tests/avocado: Pass parameters to migration test, Fabiano Rosas, 2023/03/13
- [PATCH v9 08/10] arm/Kconfig: Always select SEMIHOSTING when TCG is present, Fabiano Rosas, 2023/03/13
- [PATCH v9 09/10] arm/Kconfig: Do not build TCG-only boards on a KVM-only build, Fabiano Rosas, 2023/03/13
- [PATCH v9 10/10] gitlab-ci: Check building KVM-only aarch64 target, Fabiano Rosas, 2023/03/13