diff options
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r-- | src/mem/packet.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 19423db58..b212de7c8 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -504,7 +504,12 @@ class Packet : public Printable bool isFlush() const { return cmd.isFlush(); } // Snoop flags - void assertMemInhibit() { flags.set(MEM_INHIBIT); } + void assertMemInhibit() + { + assert(isRequest()); + assert(!flags.isSet(MEM_INHIBIT)); + flags.set(MEM_INHIBIT); + } bool memInhibitAsserted() const { return flags.isSet(MEM_INHIBIT); } void assertShared() { flags.set(SHARED); } bool sharedAsserted() const { return flags.isSet(SHARED); } |