From 9602e3a525af1404fe51676214b457bd1a0b70d0 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 db4dd9de2..9e3e8045b 100644 --- a/model/riscv_csr_map.sail +++ b/model/riscv_csr_map.sail @@ -51,6 +51,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" @@ -65,6 +67,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"