make GlobalAddrHashMap a config variable
This commit is contained in:
parent
e4ace55d77
commit
be21f6962b
@ -16,6 +16,7 @@ case object PPNBits extends Field[Int]
|
|||||||
case object VPNBits extends Field[Int]
|
case object VPNBits extends Field[Int]
|
||||||
|
|
||||||
case object GlobalAddrMap extends Field[AddrMap]
|
case object GlobalAddrMap extends Field[AddrMap]
|
||||||
|
case object GlobalAddrHashMap extends Field[AddrHashMap]
|
||||||
|
|
||||||
trait HasAddrMapParameters {
|
trait HasAddrMapParameters {
|
||||||
implicit val p: Parameters
|
implicit val p: Parameters
|
||||||
@ -29,7 +30,7 @@ trait HasAddrMapParameters {
|
|||||||
val pgLevelBits = p(PgLevelBits)
|
val pgLevelBits = p(PgLevelBits)
|
||||||
val asIdBits = p(ASIdBits)
|
val asIdBits = p(ASIdBits)
|
||||||
|
|
||||||
val addrMap = new AddrHashMap(p(GlobalAddrMap))
|
val addrMap = p(GlobalAddrHashMap)
|
||||||
}
|
}
|
||||||
|
|
||||||
case class MemAttr(prot: Int, cacheable: Boolean = false)
|
case class MemAttr(prot: Int, cacheable: Boolean = false)
|
||||||
|
Loading…
Reference in New Issue
Block a user