[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 16/25] target/arm: Remove references to gdb_has_xml
|
From: |
Alex Bennée |
|
Subject: |
[PULL 16/25] target/arm: Remove references to gdb_has_xml |
|
Date: |
Wed, 11 Oct 2023 11:33:20 +0100 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
GDB has XML support since 6.7 which was released in 2007.
It's time to remove support for old GDB versions without XML support.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230912224107.29669-10-akihiko.odaki@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-17-alex.bennee@linaro.org>
diff --git a/target/arm/gdbstub.c b/target/arm/gdbstub.c
index 8fc8351df7..b7ace24bfc 100644
--- a/target/arm/gdbstub.c
+++ b/target/arm/gdbstub.c
@@ -46,21 +46,7 @@ int arm_cpu_gdb_read_register(CPUState *cs, GByteArray
*mem_buf, int n)
/* Core integer register. */
return gdb_get_reg32(mem_buf, env->regs[n]);
}
- if (n < 24) {
- /* FPA registers. */
- if (gdb_has_xml()) {
- return 0;
- }
- return gdb_get_zeroes(mem_buf, 12);
- }
- switch (n) {
- case 24:
- /* FPA status register. */
- if (gdb_has_xml()) {
- return 0;
- }
- return gdb_get_reg32(mem_buf, 0);
- case 25:
+ if (n == 25) {
/* CPSR, or XPSR for M-profile */
if (arm_feature(env, ARM_FEATURE_M)) {
return gdb_get_reg32(mem_buf, xpsr_read(env));
@@ -100,21 +86,7 @@ int arm_cpu_gdb_write_register(CPUState *cs, uint8_t
*mem_buf, int n)
env->regs[n] = tmp;
return 4;
}
- if (n < 24) { /* 16-23 */
- /* FPA registers (ignored). */
- if (gdb_has_xml()) {
- return 0;
- }
- return 12;
- }
- switch (n) {
- case 24:
- /* FPA status register (ignored). */
- if (gdb_has_xml()) {
- return 0;
- }
- return 4;
- case 25:
+ if (n == 25) {
/* CPSR, or XPSR for M-profile */
if (arm_feature(env, ARM_FEATURE_M)) {
/*
--
2.39.2
- [PULL 06/25] configure: allow user to override docker engine, (continued)
- [PULL 06/25] configure: allow user to override docker engine, Alex Bennée, 2023/10/11
- [PULL 20/25] accel/tcg: Add plugin_enabled to DisasContextBase, Alex Bennée, 2023/10/11
- [PULL 15/25] gdbstub: Use g_markup_printf_escaped(), Alex Bennée, 2023/10/11
- [PULL 03/25] tests/lcitool: add swtpm to the package list, Alex Bennée, 2023/10/11
- [PULL 07/25] configure: remove gcc version suffixes, Alex Bennée, 2023/10/11
- [PULL 11/25] contrib/plugins: Use GRWLock in execlog, Alex Bennée, 2023/10/11
- [PULL 12/25] gdbstub: Introduce GDBFeature structure, Alex Bennée, 2023/10/11
- [PULL 17/25] target/ppc: Remove references to gdb_has_xml, Alex Bennée, 2023/10/11
- [PULL 23/25] contrib/plugins: fix coverity warning in cache, Alex Bennée, 2023/10/11
- [PULL 25/25] contrib/plugins: fix coverity warning in hotblocks, Alex Bennée, 2023/10/11
- [PULL 16/25] target/arm: Remove references to gdb_has_xml,
Alex Bennée <=
- [PULL 21/25] target/sh4: Disable decode_gusa when plugins enabled, Alex Bennée, 2023/10/11
- [PULL 18/25] gdbstub: Remove gdb_has_xml variable, Alex Bennée, 2023/10/11
- [PULL 24/25] contrib/plugins: fix coverity warning in lockstep, Alex Bennée, 2023/10/11
- [PULL 22/25] plugins: Set final instruction count in plugin_gen_tb_end, Alex Bennée, 2023/10/11
- Re: [PULL 00/25] testing, gdbstub and plugin updates, Stefan Hajnoczi, 2023/10/11