diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 04:39:25 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-04-19 04:39:25 -0700 |
commit | 742c3f045eb1821392a789a000ec89e802d6a4fd (patch) | |
tree | d7394b8a81745ff874306ed27b23583340d0d7fa | |
parent | 3e5f4876630169e92b3ad736d747bcba1b79c062 (diff) | |
download | gem5-742c3f045eb1821392a789a000ec89e802d6a4fd.tar.xz |
Memory: Add a LOCKED flag back in for x86 style locking.
-rw-r--r-- | src/mem/request.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/request.hh b/src/mem/request.hh index 9e8208260..6e56c07b3 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -75,6 +75,8 @@ class Request : public FastAlloc static const FlagsType NO_FAULT = 0x00002000; /** The request should not cause a memory access. */ static const FlagsType NO_ACCESS = 0x00004000; + /** This request will lock or unlock the accessed memory. */ + static const FlagsType LOCKED = 0x00008000; /** The request should be prefetched into the exclusive state. */ static const FlagsType PF_EXCLUSIVE = 0x00010000; /** The request should be marked as LRU. */ @@ -92,7 +94,7 @@ class Request : public FastAlloc static const FlagsType MMAPED_IPR = 0x00800000; private: - static const FlagsType PUBLIC_FLAGS = 0x00FF3FFF; + static const FlagsType PUBLIC_FLAGS = 0x00FFFFFF; static const FlagsType PRIVATE_FLAGS = 0xFF000000; /** Whether or not the size is valid. */ @@ -449,6 +451,7 @@ class Request : public FastAlloc bool isUncacheable() const { return flags.isSet(UNCACHEABLE); } bool isInstRead() const { return flags.isSet(INST_READ); } bool isLlsc() const { return flags.isSet(LLSC); } + bool isLocked() const { return flags.isSet(LOCKED); } bool isSwap() const { return flags.isSet(MEM_SWAP|MEM_SWAP_COND); } bool isCondSwap() const { return flags.isSet(MEM_SWAP_COND); } |