From 940614625e25b2e1414c7f81420262a029a6bb89 Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Mon, 22 May 2017 19:37:11 -0700 Subject: [PATCH] TLCacheCork: unsafe flag now _really_ unsafe (#760) --- src/main/scala/uncore/tilelink2/CacheCork.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/uncore/tilelink2/CacheCork.scala b/src/main/scala/uncore/tilelink2/CacheCork.scala index 36977bff..d2714431 100644 --- a/src/main/scala/uncore/tilelink2/CacheCork.scala +++ b/src/main/scala/uncore/tilelink2/CacheCork.scala @@ -34,9 +34,9 @@ class TLCacheCork(unsafe: Boolean = false)(implicit p: Parameters) extends LazyM val clients = edgeIn.client.clients val caches = clients.filter(_.supportsProbe) require (clients.size == 1 || caches.size == 0 || unsafe, "Only one client can safely use a TLCacheCork") - require (caches.size <= 1, "Only one caching client allowed") + require (caches.size <= 1 || unsafe, "Only one caching client allowed") edgeOut.manager.managers.foreach { case m => - require (!m.supportsAcquireB, "Cannot support caches beyond the Cork") + require (!m.supportsAcquireB || unsafe, "Cannot support caches beyond the Cork") } // The Cork turns [Acquire=>Get] => [AccessAckData=>GrantData]