mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 11:53:53 -06:00
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>
This commit is contained in:
parent
4cbadc40b9
commit
1fe8ac3511
3 changed files with 7 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue