mbox series

[0/5] Dump all generic CSR registers

Message ID 20250113082557.2926009-1-maobibo@loongson.cn (mailing list archive)
Headers show
Series Dump all generic CSR registers | expand

Message

bibo mao Jan. 13, 2025, 8:25 a.m. UTC
CSR registers is import system control registers, it had better to
dump all CSR registers when VM is running in system mode, rather than
dump part of those, since guest OS uses these CSR registers. And it is
very useful to debug guest OS.

Bibo Mao (5):
  target/loongarch: Add dynamic function access with CSR register
  target/loongarch: Remove static CSR function setting
  target/loongarch: Add common header file for CSR register
  target/loongarch: Add common source file for CSR register
  target/loongarch: Dump all generic CSR registers

 target/loongarch/cpu.c                        |  58 +++++--
 target/loongarch/csr.c                        | 116 ++++++++++++++
 target/loongarch/csr.h                        |  37 +++++
 target/loongarch/meson.build                  |   1 +
 .../tcg/insn_trans/trans_privileged.c.inc     | 146 ++++--------------
 target/loongarch/tcg/tcg_loongarch.h          |  12 ++
 target/loongarch/tcg/translate.c              |   3 +
 7 files changed, 237 insertions(+), 136 deletions(-)
 create mode 100644 target/loongarch/csr.c
 create mode 100644 target/loongarch/csr.h
 create mode 100644 target/loongarch/tcg/tcg_loongarch.h


base-commit: 3214bec13d8d4c40f707d21d8350d04e4123ae97