summaryrefslogtreecommitdiff
path: root/src/mem/request.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-04-19 22:00:24 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-04-19 22:00:24 -0700
commit9e9a34fed1013fa8cd124d3db65c4ca4979bedf2 (patch)
tree0a06d0a916902586437b2bf16b95784c487e8df5 /src/mem/request.hh
parentbd6f2bb538b09ce221c46d1ec5d5bfbf9a1d3350 (diff)
downloadgem5-9e9a34fed1013fa8cd124d3db65c4ca4979bedf2.tar.xz
Mem: Fill out the comment that describes the LOCKED request flag.
Diffstat (limited to 'src/mem/request.hh')
-rw-r--r--src/mem/request.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mem/request.hh b/src/mem/request.hh
index 64f6ad053..8809b0bd1 100644
--- a/src/mem/request.hh
+++ b/src/mem/request.hh
@@ -75,7 +75,12 @@ 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. */
+ /** This request will lock or unlock the accessed memory. When used with
+ * a load, the access locks the particular chunk of memory. When used
+ * with a store, it unlocks. The rule is that locked accesses have to be
+ * made up of a locked load, some operation on the data, and then a locked
+ * store.
+ */
static const FlagsType LOCKED = 0x00008000;
/** The request should be prefetched into the exclusive state. */
static const FlagsType PF_EXCLUSIVE = 0x00010000;