mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
target/tricore: Implement gdbstub
Acked-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Message-Id: <20200529072148.284037-6-kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
e00a56dbc3
commit
d127de3baa
4 changed files with 152 additions and 1 deletions
|
@ -28,6 +28,11 @@ static inline void set_feature(CPUTriCoreState *env, int feature)
|
|||
env->features |= 1ULL << feature;
|
||||
}
|
||||
|
||||
static gchar *tricore_gdb_arch_name(CPUState *cs)
|
||||
{
|
||||
return g_strdup("tricore");
|
||||
}
|
||||
|
||||
static void tricore_cpu_set_pc(CPUState *cs, vaddr value)
|
||||
{
|
||||
TriCoreCPU *cpu = TRICORE_CPU(cs);
|
||||
|
@ -150,6 +155,11 @@ static void tricore_cpu_class_init(ObjectClass *c, void *data)
|
|||
cc->class_by_name = tricore_cpu_class_by_name;
|
||||
cc->has_work = tricore_cpu_has_work;
|
||||
|
||||
cc->gdb_read_register = tricore_cpu_gdb_read_register;
|
||||
cc->gdb_write_register = tricore_cpu_gdb_write_register;
|
||||
cc->gdb_num_core_regs = 44;
|
||||
cc->gdb_arch_name = tricore_gdb_arch_name;
|
||||
|
||||
cc->dump_state = tricore_cpu_dump_state;
|
||||
cc->set_pc = tricore_cpu_set_pc;
|
||||
cc->synchronize_from_tb = tricore_cpu_synchronize_from_tb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue