From 742c3f045eb1821392a789a000ec89e802d6a4fd Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 19 Apr 2009 04:39:25 -0700 Subject: Memory: Add a LOCKED flag back in for x86 style locking. --- src/mem/request.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3