aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2020-03-29 17:53:26 -0700
committerScott Johnson <scott.johnson@arilinc.com>2020-03-29 18:25:30 -0700
commit7c6e292e55702cb10010a7c9f6f0fb2320291a13 (patch)
tree001a5d930b78c4fd79cb4190aa662c02710b976d
parent7c031be90d93c7e839c0318a09a3db9e201bde82 (diff)
downloadsail-riscv-7c6e292e55702cb10010a7c9f6f0fb2320291a13.zip
sail-riscv-7c6e292e55702cb10010a7c9f6f0fb2320291a13.tar.gz
sail-riscv-7c6e292e55702cb10010a7c9f6f0fb2320291a13.tar.bz2
Fix typos that made pmp8cfg and pmp9cfg unwritable
I'm not sure why this didn't cause a Sail compile error.
-rw-r--r--model/riscv_pmp_regs.sail8
1 files changed, 4 insertions, 4 deletions
diff --git a/model/riscv_pmp_regs.sail b/model/riscv_pmp_regs.sail
index a823a06..6901c85 100644
--- a/model/riscv_pmp_regs.sail
+++ b/model/riscv_pmp_regs.sail
@@ -109,8 +109,8 @@ function pmpWriteCfgReg(n, v) = {
pmp6cfg = pmpWriteCfg(pmp6cfg, v[23..16]);
pmp7cfg = pmpWriteCfg(pmp7cfg, v[31..24]);
},
- 2 => { pmp8cfg8 = pmpWriteCfg(pmp8cfg, v[7 ..0]);
- pmp9cfg9 = pmpWriteCfg(pmp9cfg, v[15..8]);
+ 2 => { pmp8cfg = pmpWriteCfg(pmp8cfg, v[7 ..0]);
+ pmp9cfg = pmpWriteCfg(pmp9cfg, v[15..8]);
pmp10cfg = pmpWriteCfg(pmp10cfg, v[23..16]);
pmp11cfg = pmpWriteCfg(pmp11cfg, v[31..24]);
},
@@ -131,8 +131,8 @@ function pmpWriteCfgReg(n, v) = {
pmp6cfg = pmpWriteCfg(pmp6cfg, v[55..48]);
pmp7cfg = pmpWriteCfg(pmp7cfg, v[63..56])
},
- 2 => { pmp8cfg8 = pmpWriteCfg(pmp8cfg, v[7 ..0]);
- pmp9cfg9 = pmpWriteCfg(pmp9cfg, v[15..8]);
+ 2 => { pmp8cfg = pmpWriteCfg(pmp8cfg, v[7 ..0]);
+ pmp9cfg = pmpWriteCfg(pmp9cfg, v[15..8]);
pmp10cfg = pmpWriteCfg(pmp10cfg, v[23..16]);
pmp11cfg = pmpWriteCfg(pmp11cfg, v[31..24]);
pmp12cfg = pmpWriteCfg(pmp12cfg, v[39..32]);