Merge pull request #306 from lschuermann/dev/csr-plugin-formal-halt

CsrPlugin: insert FORMAL_HALT := False
This commit is contained in:
Dolu1990 2023-02-27 09:22:46 +01:00 committed by GitHub
commit b29eb542f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -670,6 +670,10 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
}
}
// The CSR plugin will invoke a trap handler on exception, which does not
// count as halt-state by the RVFI spec, and neither do other instructions
// such as `wfi`, etc. Hence statically drive the output:
pipeline.stages.head.insert(FORMAL_HALT) := False
case class Xtvec() extends Bundle {
val mode = Bits(2 bits)