[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/5] Dump all generic CSR registers
From: |
Bibo Mao |
Subject: |
[PATCH 0/5] Dump all generic CSR registers |
Date: |
Mon, 13 Jan 2025 16:25:52 +0800 |
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
--
2.39.3
- [PATCH 0/5] Dump all generic CSR registers,
Bibo Mao <=
- [PATCH 1/5] target/loongarch: Add dynamic function access with CSR register, Bibo Mao, 2025/01/13
- [PATCH 5/5] target/loongarch: Dump all generic CSR registers, Bibo Mao, 2025/01/13
- [PATCH 3/5] target/loongarch: Add common header file for CSR register, Bibo Mao, 2025/01/13
- [PATCH 2/5] target/loongarch: Remove static CSR function setting, Bibo Mao, 2025/01/13
- [PATCH 4/5] target/loongarch: Add common source file for CSR register, Bibo Mao, 2025/01/13