mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
target/loongarch: Add GDB support for loongarch32 mode
GPRs and PC are 32-bit wide in loongarch32 mode. Signed-off-by: Jiajie Chen <c@jia.je> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Song Gao <gaosong@loongson.cn> Message-ID: <20230817093121.1053890-4-gaosong@loongson.cn> [PMD: Rebased, set gdb_num_core_regs] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230821125959.28666-9-philmd@linaro.org>
This commit is contained in:
parent
6cbba3e9eb
commit
ebda3036e1
4 changed files with 81 additions and 8 deletions
|
@ -726,8 +726,18 @@ static void loongarch_cpu_class_init(ObjectClass *c, void *data)
|
|||
#endif
|
||||
}
|
||||
|
||||
static gchar *loongarch32_gdb_arch_name(CPUState *cs)
|
||||
{
|
||||
return g_strdup("loongarch32");
|
||||
}
|
||||
|
||||
static void loongarch32_cpu_class_init(ObjectClass *c, void *data)
|
||||
{
|
||||
CPUClass *cc = CPU_CLASS(c);
|
||||
|
||||
cc->gdb_num_core_regs = 35;
|
||||
cc->gdb_core_xml_file = "loongarch-base32.xml";
|
||||
cc->gdb_arch_name = loongarch32_gdb_arch_name;
|
||||
}
|
||||
|
||||
static gchar *loongarch64_gdb_arch_name(CPUState *cs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue