diff options
author | Song Gao <gaosong@loongson.cn> | 2022-08-05 11:35:20 +0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-08-05 10:02:40 -0700 |
commit | cd8ef0ed3b20068ed170b6c30999ce8f948fec35 (patch) | |
tree | 0ddf33eaf712130b6c27bfab72e5eae99fe18857 | |
parent | 1fe8ac3511fc771376019c6bfe77f317c5e56cd6 (diff) | |
download | qemu-cd8ef0ed3b20068ed170b6c30999ce8f948fec35.zip qemu-cd8ef0ed3b20068ed170b6c30999ce8f948fec35.tar.gz qemu-cd8ef0ed3b20068ed170b6c30999ce8f948fec35.tar.bz2 |
target/loongarch: add gdb_arch_name()
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>
-rw-r--r-- | target/loongarch/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index d84ec38..941e277 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; |