1
0

make GlobalAddrHashMap a config variable

This commit is contained in:
Howard Mao 2016-05-02 18:22:43 -07:00
parent e4ace55d77
commit be21f6962b

View File

@ -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)