mem-ruby: Add Flush as a supported memory type in VIPERCoalescer

This commit adds flush as a recognized memory type in VIPERCoalescer.

Change-Id: I0f1b6f4518548e8e893ef681955b12a49293d8b4
This commit is contained in:
Vishnu Ramadas
2023-09-29 16:32:22 -05:00
parent 107e05266d
commit a50ead5907

View File

@@ -75,12 +75,14 @@ VIPERCoalescer::makeRequest(PacketPtr pkt)
// ReadReq : cache read
// WriteReq : cache write
// AtomicOp : cache atomic
// Flush : flush and invalidate cache
//
// VIPER does not expect MemSyncReq & Release since in GCN3, compute unit
// does not specify an equivalent type of memory request.
assert((pkt->cmd == MemCmd::MemSyncReq && pkt->req->isInvL1()) ||
pkt->cmd == MemCmd::ReadReq ||
pkt->cmd == MemCmd::WriteReq ||
pkt->cmd == MemCmd::FlushReq ||
pkt->isAtomicOp());
if (pkt->req->isInvL1() && m_cache_inv_pkt) {