[PATCH 0/4] target/loongarch: Small enhancements to CSR emulation

Bibo Mao posted 4 patches 5 days, 2 hours ago
There is a newer version of this series
target/loongarch/csr.c                        |  2 +-
target/loongarch/tcg/csr_helper.c             | 10 ------
target/loongarch/tcg/helper.h                 |  1 -
.../tcg/insn_trans/trans_privileged.c.inc     | 34 +++++++++++--------
target/loongarch/tcg/tcg_cpu.c                |  2 --
5 files changed, 21 insertions(+), 28 deletions(-)
[PATCH 0/4] target/loongarch: Small enhancements to CSR emulation
Posted by Bibo Mao 5 days, 2 hours ago
There are some small enhancements to CSR register emulation on
LoongArch based on the manual, such as fixing CSR.MISC being
incorrectly marked read-only and avoiding raising an exception on
writes to read-only CSRs etc.

Bibo Mao (4):
  target/loongarch: Fix BADV for BCE exception
  target/loongarch: Fix CSR.MISC being incorrectly marked read-only
  target/loongarch: Remove csrrd_cpuid() helper
  target/loongarch: Do not raise exception on read-only CSR write

 target/loongarch/csr.c                        |  2 +-
 target/loongarch/tcg/csr_helper.c             | 10 ------
 target/loongarch/tcg/helper.h                 |  1 -
 .../tcg/insn_trans/trans_privileged.c.inc     | 34 +++++++++++--------
 target/loongarch/tcg/tcg_cpu.c                |  2 --
 5 files changed, 21 insertions(+), 28 deletions(-)


base-commit: e9fa1f66f0d47c74b6766e1b8b87ad7c2a9394d5
-- 
2.54.0