summaryrefslogtreecommitdiffstats
path: root/gdb-xml
diff options
context:
space:
mode:
authorSong Gao2022-08-05 05:35:19 +0200
committerRichard Henderson2022-08-05 19:02:40 +0200
commit1fe8ac3511fc771376019c6bfe77f317c5e56cd6 (patch)
tree11b25f90bc015ee0ad35137c8ff3a3aea7c115d0 /gdb-xml
parenthw/loongarch: remove acpi-build.c unused variable 'aml_len' (diff)
downloadqemu-1fe8ac3511fc771376019c6bfe77f317c5e56cd6.tar.gz
qemu-1fe8ac3511fc771376019c6bfe77f317c5e56cd6.tar.xz
qemu-1fe8ac3511fc771376019c6bfe77f317c5e56cd6.zip
target/loongarch: Fix GDB get the wrong pc
GDB LoongArch add a register orig_a0, see the base64.xml [1]. We should add the orig_a0 to match the upstream GDB. [1]: https://github.com/bminor/binutils-gdb/blob/master/gdb/features/loongarch/base64.xml Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220805033523.1416837-2-gaosong@loongson.cn>
Diffstat (limited to 'gdb-xml')
-rw-r--r--gdb-xml/loongarch-base64.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb-xml/loongarch-base64.xml b/gdb-xml/loongarch-base64.xml
index 4962bdbd28..a1dd4f2208 100644
--- a/gdb-xml/loongarch-base64.xml
+++ b/gdb-xml/loongarch-base64.xml
@@ -39,6 +39,7 @@
<reg name="r29" bitsize="64" type="uint64" group="general"/>
<reg name="r30" bitsize="64" type="uint64" group="general"/>
<reg name="r31" bitsize="64" type="uint64" group="general"/>
+ <reg name="orig_a0" bitsize="64" type="uint64" group="general"/>
<reg name="pc" bitsize="64" type="code_ptr" group="general"/>
<reg name="badvaddr" bitsize="64" type="code_ptr" group="general"/>
</feature>