[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] target/riscv: Support mxstatus CSR for thead-c906
From: |
LIU Zhiwei |
Subject: |
[PATCH 0/2] target/riscv: Support mxstatus CSR for thead-c906 |
Date: |
Tue, 30 Jan 2024 19:11:57 +0800 |
We first add a framework for vendor CSRs in patch 1. After that we add
one thead-c906 CSR mxstatus, which is used for mmu extension xtheadmaee.
This patch set fix the regression on kernel pointed by Björn Töpel in
https://www.mail-archive.com/qemu-devel@nongnu.org/msg1018232.html.
LIU Zhiwei (2):
target/riscv: Register vendors CSR
target/riscv: Support xtheadmaee for thead-c906
target/riscv/cpu.c | 9 ++++++
target/riscv/cpu.h | 9 ++++++
target/riscv/cpu_bits.h | 6 ++++
target/riscv/cpu_cfg.h | 4 ++-
target/riscv/cpu_helper.c | 25 ++++++++-------
target/riscv/meson.build | 1 +
target/riscv/tcg/tcg-cpu.c | 25 ++++++++++++++-
target/riscv/tcg/tcg-cpu.h | 1 +
target/riscv/xthead_csr.c | 63 ++++++++++++++++++++++++++++++++++++++
9 files changed, 130 insertions(+), 13 deletions(-)
create mode 100644 target/riscv/xthead_csr.c
--
2.25.1
- [PATCH 0/2] target/riscv: Support mxstatus CSR for thead-c906,
LIU Zhiwei <=