On 10/1/25 12:33 AM, Anton Johansson wrote:
Most of these definitions save riscv_csrr, riscv_csrrw, riscv_csr_read,
riscv_csr_write are only used in target/.  Move declarations to a
separate headers which will soon be made internal to target/.

csr.h is temporarily included from cpu.h to not break includes from
outside target/, this include will be removed in the following commit.

Signed-off-by: Anton Johansson <[email protected]>
---
  target/riscv/cpu.h         | 82 +--------------------------------
  target/riscv/csr.h         | 94 ++++++++++++++++++++++++++++++++++++++
  target/riscv/cpu.c         |  1 +
  target/riscv/csr.c         |  1 +
  target/riscv/gdbstub.c     |  1 +
  target/riscv/kvm/kvm-cpu.c |  1 +
  target/riscv/op_helper.c   |  1 +
  target/riscv/th_csr.c      |  1 +
  8 files changed, 101 insertions(+), 81 deletions(-)
  create mode 100644 target/riscv/csr.h

Reviewed-by: Pierrick Bouvier <[email protected]>


Reply via email to