[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 13/29] target/riscv: Use GDBFeature for dynamic XML
From: |
Alex Bennée |
Subject: |
Re: [PATCH 13/29] target/riscv: Use GDBFeature for dynamic XML |
Date: |
Mon, 06 Nov 2023 15:35:50 +0000 |
User-agent: |
mu4e 1.11.24; emacs 29.1 |
Alex Bennée <alex.bennee@linaro.org> writes:
> Alex Bennée <alex.bennee@linaro.org> writes:
>
>> From: Akihiko Odaki <akihiko.odaki@daynix.com>
>>
>> In preparation for a change to use GDBFeature as a parameter of
>> gdb_register_coprocessor(), convert the internal representation of
>> dynamic feature from plain XML to GDBFeature.
>>
>> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>> Message-Id: <20231025093128.33116-7-akihiko.odaki@daynix.com>
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> I bisected the following failure:
>
> ./qemu-riscv64 -g 1234 ./tests/tcg/riscv64-linux-user/sha512
>
> and:
>
> gdb-multiarch ./tests/tcg/riscv64-linux-user/sha512 -ex "target remote
> localhost:1234" -x ../../tests/tcg/multiarch/gdbstub/registers.py
>
> gives:
>
> warning: Architecture rejected target-supplied description
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
I don't know if the discontinuous register numbering could be the
problem:
<feature name="org.gnu.gdb.riscv.csr">
<reg name="fflags" bitsize="64" type="int" regnum="67"/>
<reg name="frm" bitsize="64" type="int" regnum="68"/>
<reg name="fcsr" bitsize="64" type="int" regnum="69"/>
<reg name="cycle" bitsize="64" type="int" regnum="3138"/>
<reg name="time" bitsize="64" type="int" regnum="3139"/>
<reg name="instret" bitsize="64" type="int" regnum="3140"/>
</feature>
?
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH 04/29] target/arm: hide all versions of DBGD[RS]AR from gdbstub, (continued)
- [PATCH 04/29] target/arm: hide all versions of DBGD[RS]AR from gdbstub, Alex Bennée, 2023/11/03
- [PATCH 08/29] gdbstub: Add num_regs member to GDBFeature, Alex Bennée, 2023/11/03
- [PATCH 05/29] target/arm: hide aliased MIDR from gdbstub, Alex Bennée, 2023/11/03
- [PATCH 06/29] tests/tcg: add an explicit gdbstub register tester, Alex Bennée, 2023/11/03
- [PATCH 12/29] target/ppc: Use GDBFeature for dynamic XML, Alex Bennée, 2023/11/03
- [PATCH 09/29] gdbstub: Introduce gdb_find_static_feature(), Alex Bennée, 2023/11/03
- [PATCH 14/29] gdbstub: Use GDBFeature for gdb_register_coprocessor, Alex Bennée, 2023/11/03
- [PATCH 13/29] target/riscv: Use GDBFeature for dynamic XML, Alex Bennée, 2023/11/03
- [PATCH 16/29] gdbstub: Change gdb_get_reg_cb and gdb_set_reg_cb, Alex Bennée, 2023/11/03
- [PATCH 25/29] contrib/plugins: extend execlog to track register changes, Alex Bennée, 2023/11/03
- [PATCH 26/29] plugins: add dllexport and dllimport to api funcs, Alex Bennée, 2023/11/03
- [PATCH 11/29] target/arm: Use GDBFeature for dynamic XML, Alex Bennée, 2023/11/03
- [PATCH 07/29] tests/avocado: update the tcg_plugins test, Alex Bennée, 2023/11/03
- [PATCH 10/29] gdbstub: Introduce GDBFeatureBuilder, Alex Bennée, 2023/11/03
- [PATCH 22/29] cpu: Call plugin hooks only when ready, Alex Bennée, 2023/11/03
- [PATCH 17/29] gdbstub: Simplify XML lookup, Alex Bennée, 2023/11/03