From f703160e5a49bf22b831d3a7f3355d7b4b3008fa Mon Sep 17 00:00:00 2001 From: Stephan Diestelhorst Date: Mon, 10 Aug 2015 11:25:52 +0100 Subject: mem, cpu: Add assertions to snoop invalidation logic This patch adds assertions that enforce that only invalidating snoops will ever reach into the logic that tracks in-order load completion and also invalidation of LL/SC (and MONITOR / MWAIT) monitors. Also adds some comments to MSHR::replaceUpgrades(). --- src/cpu/o3/lsq_unit_impl.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cpu/o3/lsq_unit_impl.hh') diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index b87ab0240..73be5e56f 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -435,6 +435,9 @@ template void LSQUnit::checkSnoop(PacketPtr pkt) { + // Should only ever get invalidations in here + assert(pkt->isInvalidate()); + int load_idx = loadHead; DPRINTF(LSQUnit, "Got snoop for address %#x\n", pkt->getAddr()); -- cgit v1.2.3