mbox series

[0/2] Refresh the dynamic CSR xml after updating the state of the cpu.

Message ID 20230523114454.717708-1-tommy.wu@sifive.com
Headers show
Series Refresh the dynamic CSR xml after updating the state of the cpu. | expand

Message

Tommy Wu May 23, 2023, 11:44 a.m. UTC
The realize function of IMSIC will force select AIA feature and setup CSRs,
but the dynamic CSR xml is not updated, so we cannot print the AIA CSRs
in the remote gdb debugger.

In the patches, we provide a function to refresh the dynamic CSR xml,
and refresh the xml in the realize function of IMSIC.

Tommy Wu (2):
  target/riscv: Add a function to refresh the dynamic CSRs xml.
  hw/intc: riscv_imsic: Refresh the CSRs xml after updating the state of
    the cpu.

 hw/intc/riscv_imsic.c  |  4 ++++
 target/riscv/cpu.h     |  2 ++
 target/riscv/gdbstub.c | 12 ++++++++++++
 3 files changed, 18 insertions(+)