[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/7] target/loongarch: add gdb_arch_name()
From: |
Richard Henderson |
Subject: |
[PULL 4/7] target/loongarch: add gdb_arch_name() |
Date: |
Fri, 5 Aug 2022 12:55:12 -0700 |
From: Song Gao <gaosong@loongson.cn>
Matches bfd/cpu-loongarch.c, bfd_loongarch_arch.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220805033523.1416837-3-gaosong@loongson.cn>
---
target/loongarch/cpu.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c
index d84ec38cf7..941e2772bc 100644
--- a/target/loongarch/cpu.c
+++ b/target/loongarch/cpu.c
@@ -661,6 +661,11 @@ static const struct SysemuCPUOps loongarch_sysemu_ops = {
};
#endif
+static gchar *loongarch_gdb_arch_name(CPUState *cs)
+{
+ return g_strdup("loongarch64");
+}
+
static void loongarch_cpu_class_init(ObjectClass *c, void *data)
{
LoongArchCPUClass *lacc = LOONGARCH_CPU_CLASS(c);
@@ -686,6 +691,7 @@ static void loongarch_cpu_class_init(ObjectClass *c, void
*data)
cc->gdb_num_core_regs = 35;
cc->gdb_core_xml_file = "loongarch-base64.xml";
cc->gdb_stop_before_watchpoint = true;
+ cc->gdb_arch_name = loongarch_gdb_arch_name;
#ifdef CONFIG_TCG
cc->tcg_ops = &loongarch_tcg_ops;
--
2.34.1
- [PULL 0/7] loongarch patch queue, Richard Henderson, 2022/08/05
- [PULL 1/7] target/loongarch: Fix macros SET_FPU_* in cpu.h, Richard Henderson, 2022/08/05
- [PULL 2/7] hw/loongarch: remove acpi-build.c unused variable 'aml_len', Richard Henderson, 2022/08/05
- [PULL 3/7] target/loongarch: Fix GDB get the wrong pc, Richard Henderson, 2022/08/05
- [PULL 5/7] target/loongarch: update loongarch-base64.xml, Richard Henderson, 2022/08/05
- [PULL 4/7] target/loongarch: add gdb_arch_name(),
Richard Henderson <=
- [PULL 6/7] target/loongarch: Update loongarch-fpu.xml, Richard Henderson, 2022/08/05
- [PULL 7/7] target/loongarch: Update gdb_set_fpu() and gdb_get_fpu(), Richard Henderson, 2022/08/05
- Re: [PULL 0/7] loongarch patch queue, Richard Henderson, 2022/08/05