From 019d0b732fcc3148fb864bfdc81bc864810e187e Mon Sep 17 00:00:00 2001 From: Tim Hutt Date: Thu, 8 Feb 2024 09:47:35 +0000 Subject: [PATCH] Add m/senvcfg to CSR name map These were missed when those CSRs were implemented. --- model/riscv_csr_map.sail | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/riscv_csr_map.sail b/model/riscv_csr_map.sail index dcc865117..a40ff9c23 100644 --- a/model/riscv_csr_map.sail +++ b/model/riscv_csr_map.sail @@ -113,6 +113,8 @@ mapping clause csr_name_map = 0x143 <-> "stval" mapping clause csr_name_map = 0x144 <-> "sip" /* supervisor protection and translation */ mapping clause csr_name_map = 0x180 <-> "satp" +/* supervisor envcfg */ +mapping clause csr_name_map = 0x10A <-> "senvcfg" /* machine information registers */ mapping clause csr_name_map = 0xF11 <-> "mvendorid" mapping clause csr_name_map = 0xF12 <-> "marchid" @@ -127,6 +129,8 @@ mapping clause csr_name_map = 0x304 <-> "mie" mapping clause csr_name_map = 0x305 <-> "mtvec" mapping clause csr_name_map = 0x306 <-> "mcounteren" mapping clause csr_name_map = 0x320 <-> "mcountinhibit" +/* machine envcfg */ +mapping clause csr_name_map = 0x30A <-> "menvcfg" /* machine trap handling */ mapping clause csr_name_map = 0x340 <-> "mscratch" mapping clause csr_name_map = 0x341 <-> "mepc"