Skip to content

Commit

Permalink
Restore tweak to CSRFile Decode logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkoenig committed May 17, 2022
1 parent a71de1c commit f2cbe12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/rocket/CSR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ class CSRFile(
usingHypervisor.option( HFENCE_GVMA-> List(N,N,N,N,N,N,N,Y,N)) ++
(if (usingHypervisor) hlsv.map(_-> List(N,N,N,N,N,N,N,N,Y)) else Seq())
val insn_call :: insn_break :: insn_ret :: insn_cease :: insn_wfi :: _ :: _ :: _ :: _ :: Nil =
DecodeLogic(io.rw.addr << 20, decode_table(0)._2.map(x=>X), decode_table).map(system_insn && _.asBool)
DecodeLogic(io.rw.addr, decode_table(0)._2.map(x=>X), decode_table.map({ case (in, out) => (in(31, 20), out) })).map(system_insn && _.asBool)

for (io_dec <- io.decode) {
val addr = io_dec.inst(31, 20)
Expand Down

0 comments on commit f2cbe12

Please sign in to comment.