packet.hh (11286:2071db8f864b) | packet.hh (11287:0d5bbeaeb8ca) |
---|---|
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 --- 488 unchanged lines hidden (view full) --- 497 /// Return the index of this command. 498 inline int cmdToIndex() const { return cmd.toInt(); } 499 500 bool isRead() const { return cmd.isRead(); } 501 bool isWrite() const { return cmd.isWrite(); } 502 bool isUpgrade() const { return cmd.isUpgrade(); } 503 bool isRequest() const { return cmd.isRequest(); } 504 bool isResponse() const { return cmd.isResponse(); } | 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 --- 488 unchanged lines hidden (view full) --- 497 /// Return the index of this command. 498 inline int cmdToIndex() const { return cmd.toInt(); } 499 500 bool isRead() const { return cmd.isRead(); } 501 bool isWrite() const { return cmd.isWrite(); } 502 bool isUpgrade() const { return cmd.isUpgrade(); } 503 bool isRequest() const { return cmd.isRequest(); } 504 bool isResponse() const { return cmd.isResponse(); } |
505 bool needsWritable() const { return cmd.needsWritable(); } | 505 bool needsWritable() const 506 { 507 // we should never check if a response needsWritable, the 508 // request has this flag, and for a response we should rather 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 } |
506 bool needsResponse() const { return cmd.needsResponse(); } 507 bool isInvalidate() const { return cmd.isInvalidate(); } 508 bool isEviction() const { return cmd.isEviction(); } 509 bool isWriteback() const { return cmd.isWriteback(); } 510 bool hasData() const { return cmd.hasData(); } 511 bool hasRespData() const 512 { 513 MemCmd resp_cmd = cmd.responseCommand(); --- 657 unchanged lines hidden --- | 514 bool needsResponse() const { return cmd.needsResponse(); } 515 bool isInvalidate() const { return cmd.isInvalidate(); } 516 bool isEviction() const { return cmd.isEviction(); } 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(); --- 657 unchanged lines hidden --- |