summaryrefslogtreecommitdiffstats
path: root/target/arm/helper.c
diff options
context:
space:
mode:
authorAlex Bennée2020-03-16 18:21:43 +0100
committerAlex Bennée2020-03-17 18:38:38 +0100
commit32d6e32afa694ebedf2c5f3bf6f013c5debb5959 (patch)
treecf5979974f7b81cd6b3907f1ddad32c044c7bd58 /target/arm/helper.c
parenttarget/arm: prepare for multiple dynamic XMLs (diff)
downloadqemu-32d6e32afa694ebedf2c5f3bf6f013c5debb5959.tar.gz
qemu-32d6e32afa694ebedf2c5f3bf6f013c5debb5959.tar.xz
qemu-32d6e32afa694ebedf2c5f3bf6f013c5debb5959.zip
target/arm: explicitly encode regnum in our XML
This is described as optional but I'm not convinced of the numbering when multiple target fragments are sent. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200316172155.971-17-alex.bennee@linaro.org>
Diffstat (limited to 'target/arm/helper.c')
-rw-r--r--target/arm/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index b0e2a85b00..9013573135 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -7973,7 +7973,7 @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
19, "arm-vfp.xml", 0);
}
gdb_register_coprocessor(cs, arm_gdb_get_sysreg, arm_gdb_set_sysreg,
- arm_gen_dynamic_sysreg_xml(cs),
+ arm_gen_dynamic_sysreg_xml(cs, cs->gdb_num_regs),
"system-registers.xml", 0);
}