mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
gdbstub: Add members to identify registers to GDBFeature
These members will be used to help plugins to identify registers. The added members in instances of GDBFeature dynamically generated by CPUs will be filled in later changes. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-Id: <20231213-gdb-v17-10-777047380591@daynix.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240227144335.1196131-15-alex.bennee@linaro.org>
This commit is contained in:
parent
f1a5287fc3
commit
eb37086fb0
4 changed files with 26 additions and 7 deletions
|
@ -266,11 +266,9 @@ static GDBFeature *riscv_gen_dynamic_csr_feature(CPUState *cs, int base_reg)
|
|||
}
|
||||
predicate = csr_ops[i].predicate;
|
||||
if (predicate && (predicate(env, i) == RISCV_EXCP_NONE)) {
|
||||
g_autofree char *dynamic_name = NULL;
|
||||
name = csr_ops[i].name;
|
||||
if (!name) {
|
||||
dynamic_name = g_strdup_printf("csr%03x", i);
|
||||
name = dynamic_name;
|
||||
name = g_strdup_printf("csr%03x", i);
|
||||
}
|
||||
|
||||
gdb_feature_builder_append_reg(&builder, name, bitsize, i,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue