Re: [PATCH v2 4/8] target/riscv: add helper to get CSR name

2025-02-28 Thread Andrew Jones
On Mon, Feb 24, 2025 at 04:24:11PM +0800, Yong-Xuan Wang wrote: > Add a helper function to get CSR name from CSR number. > > Signed-off-by: Yong-Xuan Wang > --- > target/riscv/cpu.h | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/target/riscv/cpu.h b/target/riscv

[PATCH v2 4/8] target/riscv: add helper to get CSR name

2025-02-24 Thread Yong-Xuan Wang
Add a helper function to get CSR name from CSR number. Signed-off-by: Yong-Xuan Wang --- target/riscv/cpu.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 616c3bdc1c24..df10ff63474b 100644 --- a/target/riscv/cpu.h +++ b/ta