1
0

tilelink2: only combine managers of the same resources

This commit is contained in:
Wesley W. Terpstra 2017-06-01 15:29:45 -07:00
parent 1f531b1593
commit eb14329c63

View File

@ -355,9 +355,9 @@ object ManagerUnification
def apply(managers: Seq[TLManagerParameters]) = { def apply(managers: Seq[TLManagerParameters]) = {
// To be unified, devices must agree on all of these terms // To be unified, devices must agree on all of these terms
case class TLManagerKey( case class TLManagerKey(
resources: Seq[Resource],
regionType: RegionType.T, regionType: RegionType.T,
executable: Boolean, executable: Boolean,
lastNode: BaseNode,
supportsAcquireT: TransferSizes, supportsAcquireT: TransferSizes,
supportsAcquireB: TransferSizes, supportsAcquireB: TransferSizes,
supportsArithmetic: TransferSizes, supportsArithmetic: TransferSizes,
@ -367,9 +367,9 @@ object ManagerUnification
supportsPutPartial: TransferSizes, supportsPutPartial: TransferSizes,
supportsHint: TransferSizes) supportsHint: TransferSizes)
def key(x: TLManagerParameters) = TLManagerKey( def key(x: TLManagerParameters) = TLManagerKey(
resources = x.resources,
regionType = x.regionType, regionType = x.regionType,
executable = x.executable, executable = x.executable,
lastNode = x.nodePath.last,
supportsAcquireT = x.supportsAcquireT, supportsAcquireT = x.supportsAcquireT,
supportsAcquireB = x.supportsAcquireB, supportsAcquireB = x.supportsAcquireB,
supportsArithmetic = x.supportsArithmetic, supportsArithmetic = x.supportsArithmetic,