# Node ID 89acf0bcf147baaa21c41bfa0acb7bb86d7185df # Parent 359d9b3e8dfe8e22884393eab4a2bfa2e47dfdd5 diff --git a/src/mem/request.hh b/src/mem/request.hh --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -154,6 +154,10 @@ PF_EXCLUSIVE = 0x02000000, /** The request should be marked as LRU. */ EVICT_NEXT = 0x04000000, + /** The request should be marked with ACQUIRE. */ + ACQUIRE = 0x00020000, + /** The request should be marked with RELEASE. */ + RELEASE = 0x00040000, /** * The request should be handled by the generic IPR code (only @@ -655,6 +659,13 @@ bool isMmappedIpr() const { return _flags.isSet(MMAPPED_IPR); } bool isSecure() const { return _flags.isSet(SECURE); } bool isPTWalk() const { return _flags.isSet(PT_WALK); } + bool isAcquire() const { return _flags.isSet(ACQUIRE); } + bool isRelease() const { return _flags.isSet(RELEASE); } + + bool isAcquireRelease() const + { + return _flags.isSet(RELEASE) && _flags.isSet(ACQUIRE); + } }; #endif // __MEM_REQUEST_HH__