[PATCH 0/3] target/riscv: mseccfg CSR fixes [GL4680,GL4818]

Daniel Henrique Barboza posted 3 patches 6 days, 10 hours ago
target/riscv/tcg/csr.c                        | 32 +++++++++
target/riscv/tcg/pmp.c                        | 62 +++++++++++------
tests/tcg/riscv32/system/meson.build          | 19 +++++
tests/tcg/riscv32/test-mseccfg-bits-1.S       | 69 +++++++++++++++++++
tests/tcg/riscv32/test-mseccfg-bits-2.S       | 56 +++++++++++++++
tests/tcg/riscv32/test-mseccfg-bits-3.S       | 56 +++++++++++++++
tests/tcg/riscv32/test-mseccfg-bits-4.S       | 55 +++++++++++++++
tests/tcg/riscv64/system/meson.build          | 11 +++
tests/tcg/riscv64/test-mseccfg-pmm-clear.S    | 63 +++++++++++++++++
tests/tcg/riscv64/test-mseccfg-pmm-reserved.S | 63 +++++++++++++++++
10 files changed, 464 insertions(+), 22 deletions(-)
create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-1.S
create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-2.S
create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-3.S
create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-4.S
create mode 100644 tests/tcg/riscv64/test-mseccfg-pmm-clear.S
create mode 100644 tests/tcg/riscv64/test-mseccfg-pmm-reserved.S
[PATCH 0/3] target/riscv: mseccfg CSR fixes [GL4680,GL4818]
Posted by Daniel Henrique Barboza 6 days, 10 hours ago
Hi,

Here are fixes for two bugs in the same code region, i.e.
mseccfg_csr_write() in pmp.c. 

Patch 2 basically fixes both bugs.  One of them also requires the
implementation of mseccfgH so an extra patch was needed.

Daniel Henrique Barboza (3):
  target/riscv/tcg/pmp.c: remove no-op in mseccfg_csr_write()
  target/riscv/tcg: refactor mseccfg_csr_write() [GL4818]
  target/riscv/tcg/csr.c: add mseccfgh CSR [GL4680]

 target/riscv/tcg/csr.c                        | 32 +++++++++
 target/riscv/tcg/pmp.c                        | 62 +++++++++++------
 tests/tcg/riscv32/system/meson.build          | 19 +++++
 tests/tcg/riscv32/test-mseccfg-bits-1.S       | 69 +++++++++++++++++++
 tests/tcg/riscv32/test-mseccfg-bits-2.S       | 56 +++++++++++++++
 tests/tcg/riscv32/test-mseccfg-bits-3.S       | 56 +++++++++++++++
 tests/tcg/riscv32/test-mseccfg-bits-4.S       | 55 +++++++++++++++
 tests/tcg/riscv64/system/meson.build          | 11 +++
 tests/tcg/riscv64/test-mseccfg-pmm-clear.S    | 63 +++++++++++++++++
 tests/tcg/riscv64/test-mseccfg-pmm-reserved.S | 63 +++++++++++++++++
 10 files changed, 464 insertions(+), 22 deletions(-)
 create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-1.S
 create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-2.S
 create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-3.S
 create mode 100644 tests/tcg/riscv32/test-mseccfg-bits-4.S
 create mode 100644 tests/tcg/riscv64/test-mseccfg-pmm-clear.S
 create mode 100644 tests/tcg/riscv64/test-mseccfg-pmm-reserved.S

-- 
2.43.0