From 9e9a34fed1013fa8cd124d3db65c4ca4979bedf2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 19 Apr 2009 22:00:24 -0700 Subject: Mem: Fill out the comment that describes the LOCKED request flag. --- src/mem/request.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mem/request.hh') 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; -- cgit v1.2.3