On Tue, Jul 1, 2025 at 1:02 PM Jay Chang <jay.ch...@sifive.com> wrote: > > Patch 1 adds a predicate to restrict access to "medeleg, mideleg, and > medelegh" to harts that support S-mode. > > Patch 2 adds a privilege check for the "midelegh" CSR, which is defined by > the AIA extension and only valid when Smaia is supported. This is enforced > via an updated predicate in aia_smode32. > > Change log: > V3: > * Add cover letter > > Jay Chang (2): > target/riscv: Restrict mideleg/medeleg/medelegh access to S-mode harts > target/riscv: Restrict midelegh access to S-mode harts
Thanks! Applied to riscv-to-apply.next Alistair > > target/riscv/csr.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > -- > 2.48.1 > >