fix(CSR): initialize [m|h|s]context to 0 (#4915)

This commit is contained in:
Guanghui Cheng 2025-07-31 18:25:39 +08:00 committed by GitHub
parent 3f1da1da00
commit 067f755de5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit dec66a09340ccf720063601dddb856b246a91285
Subproject commit 2ea9d84709fdafe27c421d10d7e065c9e0a1b20f

View File

@ -756,7 +756,7 @@ object OPTYPE extends CSREnum with WARLApply {
class McontextBundle extends CSRBundle {
override val len = 14
val HCONTEXT = RW(13, 0)
val HCONTEXT = RW(13, 0).withReset(0.U)
}
trait HasOfFromPerfCntBundle { self: CSRModule[_] =>

View File

@ -253,7 +253,7 @@ class SatpBundle extends CSRBundle {
class ScontextBundle extends CSRBundle {
override val len = 32
val ALL = RW(31, 0)
val ALL = RW(31, 0).withReset(0.U)
}
class SEnvCfg extends EnvCfg