fix(CSR): initialize [m|h|s]context to 0 (#4915)
This commit is contained in:
parent
3f1da1da00
commit
067f755de5
|
@ -1 +1 @@
|
|||
Subproject commit dec66a09340ccf720063601dddb856b246a91285
|
||||
Subproject commit 2ea9d84709fdafe27c421d10d7e065c9e0a1b20f
|
|
@ -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[_] =>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue