packet.hh (10739:4cfe55719da5) | packet.hh (10763:d524dc4f16ae) |
---|---|
1/* 2 * Copyright (c) 2012-2015 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 --- 247 unchanged lines hidden (view full) --- 256 static const FlagsType STATIC_DATA = 0x00001000; 257 /// The data pointer points to a value that should be freed when 258 /// the packet is destroyed. The pointer is assumed to be pointing 259 /// to an array, and delete [] is consequently called 260 static const FlagsType DYNAMIC_DATA = 0x00002000; 261 /// suppress the error if this packet encounters a functional 262 /// access failure. 263 static const FlagsType SUPPRESS_FUNC_ERROR = 0x00008000; | 1/* 2 * Copyright (c) 2012-2015 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 --- 247 unchanged lines hidden (view full) --- 256 static const FlagsType STATIC_DATA = 0x00001000; 257 /// The data pointer points to a value that should be freed when 258 /// the packet is destroyed. The pointer is assumed to be pointing 259 /// to an array, and delete [] is consequently called 260 static const FlagsType DYNAMIC_DATA = 0x00002000; 261 /// suppress the error if this packet encounters a functional 262 /// access failure. 263 static const FlagsType SUPPRESS_FUNC_ERROR = 0x00008000; |
264 // Signal prefetch squash through express snoop flag 265 static const FlagsType PREFETCH_SNOOP_SQUASH = 0x00010000; | 264 // Signal block present to squash prefetch and cache evict packets 265 // through express snoop flag 266 static const FlagsType BLOCK_CACHED = 0x00010000; |
266 267 Flags flags; 268 269 public: 270 typedef MemCmd::Command Command; 271 272 /// The command field of the packet. 273 MemCmd cmd; --- 226 unchanged lines hidden (view full) --- 500 // Special control flags 501 void setExpressSnoop() { flags.set(EXPRESS_SNOOP); } 502 bool isExpressSnoop() const { return flags.isSet(EXPRESS_SNOOP); } 503 void setSupplyExclusive() { flags.set(SUPPLY_EXCLUSIVE); } 504 void clearSupplyExclusive() { flags.clear(SUPPLY_EXCLUSIVE); } 505 bool isSupplyExclusive() const { return flags.isSet(SUPPLY_EXCLUSIVE); } 506 void setSuppressFuncError() { flags.set(SUPPRESS_FUNC_ERROR); } 507 bool suppressFuncError() const { return flags.isSet(SUPPRESS_FUNC_ERROR); } | 267 268 Flags flags; 269 270 public: 271 typedef MemCmd::Command Command; 272 273 /// The command field of the packet. 274 MemCmd cmd; --- 226 unchanged lines hidden (view full) --- 501 // Special control flags 502 void setExpressSnoop() { flags.set(EXPRESS_SNOOP); } 503 bool isExpressSnoop() const { return flags.isSet(EXPRESS_SNOOP); } 504 void setSupplyExclusive() { flags.set(SUPPLY_EXCLUSIVE); } 505 void clearSupplyExclusive() { flags.clear(SUPPLY_EXCLUSIVE); } 506 bool isSupplyExclusive() const { return flags.isSet(SUPPLY_EXCLUSIVE); } 507 void setSuppressFuncError() { flags.set(SUPPRESS_FUNC_ERROR); } 508 bool suppressFuncError() const { return flags.isSet(SUPPRESS_FUNC_ERROR); } |
508 void setPrefetchSquashed() { flags.set(PREFETCH_SNOOP_SQUASH); } 509 bool prefetchSquashed() const { return flags.isSet(PREFETCH_SNOOP_SQUASH); } | 509 void setBlockCached() { flags.set(BLOCK_CACHED); } 510 bool isBlockCached() const { return flags.isSet(BLOCK_CACHED); } |
510 511 // Network error conditions... encapsulate them as methods since 512 // their encoding keeps changing (from result field to command 513 // field, etc.) 514 void 515 setBadAddress() 516 { 517 assert(isResponse()); --- 457 unchanged lines hidden --- | 511 512 // Network error conditions... encapsulate them as methods since 513 // their encoding keeps changing (from result field to command 514 // field, etc.) 515 void 516 setBadAddress() 517 { 518 assert(isResponse()); --- 457 unchanged lines hidden --- |