[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-7.1 v2 2/5] target/loongarch: add gdb_arch_name()
From: |
Song Gao |
Subject: |
[PATCH for-7.1 v2 2/5] target/loongarch: add gdb_arch_name() |
Date: |
Fri, 5 Aug 2022 11:35:20 +0800 |
Matches bfd/cpu-loongarch.c, bfd_loongarch_arch.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <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.31.1
- [PATCH for-7.1 v2 0/5] Fix gdb bugs and update gdb-xml, Song Gao, 2022/08/04
- [PATCH for-7.1 v2 1/5] target/loongarch: Fix GDB get the wrong pc, Song Gao, 2022/08/04
- [PATCH for-7.1 v2 5/5] target/loongarch: Update gdb_set_fpu() and gdb_get_fpu(), Song Gao, 2022/08/04
- [PATCH for-7.1 v2 4/5] target/loongarch: Update loongarch-fpu.xml, Song Gao, 2022/08/04
- [PATCH for-7.1 v2 3/5] target/loongarch: update loongarch-base64.xml, Song Gao, 2022/08/04
- [PATCH for-7.1 v2 2/5] target/loongarch: add gdb_arch_name(),
Song Gao <=
- Re: [PATCH for-7.1 v2 0/5] Fix gdb bugs and update gdb-xml, Alex Bennée, 2022/08/05
- Re: [PATCH for-7.1 v2 0/5] Fix gdb bugs and update gdb-xml, Richard Henderson, 2022/08/05