request.hh (10755:dcd7cf19f7c5) request.hh (10760:8f5993cfa916)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 113 unchanged lines hidden (view full) ---

122 /** The request should not cause a memory access. */
123 static const FlagsType NO_ACCESS = 0x00080000;
124 /** This request will lock or unlock the accessed memory. When used with
125 * a load, the access locks the particular chunk of memory. When used
126 * with a store, it unlocks. The rule is that locked accesses have to be
127 * made up of a locked load, some operation on the data, and then a locked
128 * store.
129 */
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 113 unchanged lines hidden (view full) ---

122 /** The request should not cause a memory access. */
123 static const FlagsType NO_ACCESS = 0x00080000;
124 /** This request will lock or unlock the accessed memory. When used with
125 * a load, the access locks the particular chunk of memory. When used
126 * with a store, it unlocks. The rule is that locked accesses have to be
127 * made up of a locked load, some operation on the data, and then a locked
128 * store.
129 */
130 static const FlagsType LOCKED = 0x00100000;
130 static const FlagsType LOCKED_RMW = 0x00100000;
131 /** The request is a Load locked/store conditional. */
132 static const FlagsType LLSC = 0x00200000;
133 /** This request is for a memory swap. */
134 static const FlagsType MEM_SWAP = 0x00400000;
135 static const FlagsType MEM_SWAP_COND = 0x00800000;
136
137 /** The request is a prefetch. */
138 static const FlagsType PREFETCH = 0x01000000;

--- 482 unchanged lines hidden (view full) ---

621
622 /** Accessor functions for flags. Note that these are for testing
623 only; setting flags should be done via setFlags(). */
624 bool isUncacheable() const { return _flags.isSet(UNCACHEABLE); }
625 bool isInstFetch() const { return _flags.isSet(INST_FETCH); }
626 bool isPrefetch() const { return _flags.isSet(PREFETCH); }
627 bool isLLSC() const { return _flags.isSet(LLSC); }
628 bool isPriv() const { return _flags.isSet(PRIVILEGED); }
131 /** The request is a Load locked/store conditional. */
132 static const FlagsType LLSC = 0x00200000;
133 /** This request is for a memory swap. */
134 static const FlagsType MEM_SWAP = 0x00400000;
135 static const FlagsType MEM_SWAP_COND = 0x00800000;
136
137 /** The request is a prefetch. */
138 static const FlagsType PREFETCH = 0x01000000;

--- 482 unchanged lines hidden (view full) ---

621
622 /** Accessor functions for flags. Note that these are for testing
623 only; setting flags should be done via setFlags(). */
624 bool isUncacheable() const { return _flags.isSet(UNCACHEABLE); }
625 bool isInstFetch() const { return _flags.isSet(INST_FETCH); }
626 bool isPrefetch() const { return _flags.isSet(PREFETCH); }
627 bool isLLSC() const { return _flags.isSet(LLSC); }
628 bool isPriv() const { return _flags.isSet(PRIVILEGED); }
629 bool isLocked() const { return _flags.isSet(LOCKED); }
629 bool isLockedRMW() const { return _flags.isSet(LOCKED_RMW); }
630 bool isSwap() const { return _flags.isSet(MEM_SWAP|MEM_SWAP_COND); }
631 bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); }
632 bool isMmappedIpr() const { return _flags.isSet(MMAPPED_IPR); }
633 bool isClearLL() const { return _flags.isSet(CLEAR_LL); }
634 bool isSecure() const { return _flags.isSet(SECURE); }
635 bool isPTWalk() const { return _flags.isSet(PT_WALK); }
636};
637
638#endif // __MEM_REQUEST_HH__
630 bool isSwap() const { return _flags.isSet(MEM_SWAP|MEM_SWAP_COND); }
631 bool isCondSwap() const { return _flags.isSet(MEM_SWAP_COND); }
632 bool isMmappedIpr() const { return _flags.isSet(MMAPPED_IPR); }
633 bool isClearLL() const { return _flags.isSet(CLEAR_LL); }
634 bool isSecure() const { return _flags.isSet(SECURE); }
635 bool isPTWalk() const { return _flags.isSet(PT_WALK); }
636};
637
638#endif // __MEM_REQUEST_HH__