summary refs log tree commit diff stats
path: root/target/loongarch/gdbstub.c
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-02-27 14:43:14 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-02-28 09:09:34 +0000
commitac1e86710000ba3cf2e80836fb3f66ba12b169b8 (patch)
tree794aaa3c14f6c42e936212e4a29013649cc21e0a /target/loongarch/gdbstub.c
parent33a24910aedaa184515b04921cc8a5dcccd99235 (diff)
downloadfocaccia-qemu-ac1e86710000ba3cf2e80836fb3f66ba12b169b8.tar.gz
focaccia-qemu-ac1e86710000ba3cf2e80836fb3f66ba12b169b8.zip
gdbstub: Use GDBFeature for gdb_register_coprocessor
This is a tree-wide change to introduce GDBFeature parameter to
gdb_register_coprocessor(). The new parameter just replaces num_regs
and xml parameters for now. GDBFeature will be utilized to simplify XML
lookup in a following change.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231213-gdb-v17-4-777047380591@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240227144335.1196131-9-alex.bennee@linaro.org>
Diffstat (limited to 'target/loongarch/gdbstub.c')
-rw-r--r--target/loongarch/gdbstub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/loongarch/gdbstub.c b/target/loongarch/gdbstub.c
index 5fc2f19e96..843a869450 100644
--- a/target/loongarch/gdbstub.c
+++ b/target/loongarch/gdbstub.c
@@ -118,5 +118,5 @@ static int loongarch_gdb_set_fpu(CPULoongArchState *env,
 void loongarch_cpu_register_gdb_regs_for_features(CPUState *cs)
 {
     gdb_register_coprocessor(cs, loongarch_gdb_get_fpu, loongarch_gdb_set_fpu,
-                             41, "loongarch-fpu.xml", 0);
+                             gdb_find_static_feature("loongarch-fpu.xml"), 0);
 }