packet.hh (11306:a5340a2a24f9) | packet.hh (11600:a38c3f9c82d1) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2012-2015 ARM Limited | 2 * Copyright (c) 2012-2016 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 135 unchanged lines hidden (view full) --- 146 IsEviction, 147 IsSWPrefetch, 148 IsHWPrefetch, 149 IsLlsc, //!< Alpha/MIPS LL or SC access 150 HasData, //!< There is an associated payload 151 IsError, //!< Error response 152 IsPrint, //!< Print state matching address (for debugging) 153 IsFlush, //!< Flush the address from caches | 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 135 unchanged lines hidden (view full) --- 146 IsEviction, 147 IsSWPrefetch, 148 IsHWPrefetch, 149 IsLlsc, //!< Alpha/MIPS LL or SC access 150 HasData, //!< There is an associated payload 151 IsError, //!< Error response 152 IsPrint, //!< Print state matching address (for debugging) 153 IsFlush, //!< Flush the address from caches |
154 FromCache, //!< Request originated from a caching agent |
|
154 NUM_COMMAND_ATTRIBUTES 155 }; 156 157 /** 158 * Structure that defines attributes and other data associated 159 * with a Command. 160 */ 161 struct CommandInfo --- 26 unchanged lines hidden (view full) --- 188 bool isWrite() const { return testCmdAttrib(IsWrite); } 189 bool isUpgrade() const { return testCmdAttrib(IsUpgrade); } 190 bool isRequest() const { return testCmdAttrib(IsRequest); } 191 bool isResponse() const { return testCmdAttrib(IsResponse); } 192 bool needsWritable() const { return testCmdAttrib(NeedsWritable); } 193 bool needsResponse() const { return testCmdAttrib(NeedsResponse); } 194 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); } 195 bool isEviction() const { return testCmdAttrib(IsEviction); } | 155 NUM_COMMAND_ATTRIBUTES 156 }; 157 158 /** 159 * Structure that defines attributes and other data associated 160 * with a Command. 161 */ 162 struct CommandInfo --- 26 unchanged lines hidden (view full) --- 189 bool isWrite() const { return testCmdAttrib(IsWrite); } 190 bool isUpgrade() const { return testCmdAttrib(IsUpgrade); } 191 bool isRequest() const { return testCmdAttrib(IsRequest); } 192 bool isResponse() const { return testCmdAttrib(IsResponse); } 193 bool needsWritable() const { return testCmdAttrib(NeedsWritable); } 194 bool needsResponse() const { return testCmdAttrib(NeedsResponse); } 195 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); } 196 bool isEviction() const { return testCmdAttrib(IsEviction); } |
197 bool fromCache() const { return testCmdAttrib(FromCache); } |
|
196 197 /** 198 * A writeback is an eviction that carries data. 199 */ 200 bool isWriteback() const { return testCmdAttrib(IsEviction) && 201 testCmdAttrib(HasData); } 202 203 /** --- 305 unchanged lines hidden (view full) --- 509 // look at the hasSharers flag (if not set, the response is to 510 // be considered writable) 511 assert(isRequest()); 512 return cmd.needsWritable(); 513 } 514 bool needsResponse() const { return cmd.needsResponse(); } 515 bool isInvalidate() const { return cmd.isInvalidate(); } 516 bool isEviction() const { return cmd.isEviction(); } | 198 199 /** 200 * A writeback is an eviction that carries data. 201 */ 202 bool isWriteback() const { return testCmdAttrib(IsEviction) && 203 testCmdAttrib(HasData); } 204 205 /** --- 305 unchanged lines hidden (view full) --- 511 // look at the hasSharers flag (if not set, the response is to 512 // be considered writable) 513 assert(isRequest()); 514 return cmd.needsWritable(); 515 } 516 bool needsResponse() const { return cmd.needsResponse(); } 517 bool isInvalidate() const { return cmd.isInvalidate(); } 518 bool isEviction() const { return cmd.isEviction(); } |
519 bool fromCache() const { return cmd.fromCache(); } |
|
517 bool isWriteback() const { return cmd.isWriteback(); } 518 bool hasData() const { return cmd.hasData(); } 519 bool hasRespData() const 520 { 521 MemCmd resp_cmd = cmd.responseCommand(); 522 return resp_cmd.hasData(); 523 } 524 bool isLLSC() const { return cmd.isLLSC(); } --- 660 unchanged lines hidden --- | 520 bool isWriteback() const { return cmd.isWriteback(); } 521 bool hasData() const { return cmd.hasData(); } 522 bool hasRespData() const 523 { 524 MemCmd resp_cmd = cmd.responseCommand(); 525 return resp_cmd.hasData(); 526 } 527 bool isLLSC() const { return cmd.isLLSC(); } --- 660 unchanged lines hidden --- |