Skip to content

Commit

Permalink
CSR: add mconfigptr and default to zero (#3446)
Browse files Browse the repository at this point in the history
Priv spec 1.12 requires that `mconfigptr` must be implemented.

(cherry picked from commit 113eb12)
  • Loading branch information
poemonsense authored and mergify[bot] committed Jul 25, 2023
1 parent 836be7a commit 7533edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/rocket/CSR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,8 @@ class CSRFile(
read_mapping += CSRs.vstvec -> read_vstvec
}

// mimpid, marchid, and mvendorid are 0 unless overridden by customCSRs
Seq(CSRs.mimpid, CSRs.marchid, CSRs.mvendorid).foreach(id => read_mapping.getOrElseUpdate(id, 0.U))
// mimpid, marchid, mvendorid, and mconfigptr are 0 unless overridden by customCSRs
Seq(CSRs.mimpid, CSRs.marchid, CSRs.mvendorid, CSRs.mconfigptr).foreach(id => read_mapping.getOrElseUpdate(id, 0.U))

val decoded_addr = {
val addr = Cat(io.status.v, io.rw.addr)
Expand Down

0 comments on commit 7533edb

Please sign in to comment.