Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Sep 30, 2023
1 parent d016127 commit 35bfcb1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,9 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
case s if s.contains("rv_zfh") => minFLen == 16
case s if s.contains("rv64_zfh") => (xLen == 64) && (minFLen == 16)
case s if s.contains("rv_d_zfh") => (fLen == 64) && (minFLen == 16)

// Priv
case s if s.contains("rv_system") => i.name match {
case "wfi" => true
case "mret" => true
case "dret" => usingDebug
}
case s if s.contains("rv_system") => true
// Supervisor
case s if s.contains("rv_s") => i.name match {
// if support superviosr but don't support virtual memory, raise illinstr.
Expand All @@ -229,6 +226,8 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
// Hypervisor
case s if s.contains("rv_h") => usingHypervisor
case s if s.contains("rv64_h") => (xLen == 64) && usingHypervisor
// Debug
case s if s.contains("rv_sdext") => usingDebug

// TODO:
// Bit Manipulation, RocketChip doesn't provide a fine-grand Bit-Manipulation and Crypto support for now.
Expand Down

0 comments on commit 35bfcb1

Please sign in to comment.