packet.hh (10342:711eb0e64249) | packet.hh (10343:a1eea45928e6) |
---|---|
1/* 2 * Copyright (c) 2012-2014 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 --- 182 unchanged lines hidden (view full) --- 191 bool isRequest() const { return testCmdAttrib(IsRequest); } 192 bool isResponse() const { return testCmdAttrib(IsResponse); } 193 bool needsExclusive() const { return testCmdAttrib(NeedsExclusive); } 194 bool needsResponse() const { return testCmdAttrib(NeedsResponse); } 195 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); } 196 bool hasData() const { return testCmdAttrib(HasData); } 197 bool isReadWrite() const { return isRead() && isWrite(); } 198 bool isLLSC() const { return testCmdAttrib(IsLlsc); } | 1/* 2 * Copyright (c) 2012-2014 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 --- 182 unchanged lines hidden (view full) --- 191 bool isRequest() const { return testCmdAttrib(IsRequest); } 192 bool isResponse() const { return testCmdAttrib(IsResponse); } 193 bool needsExclusive() const { return testCmdAttrib(NeedsExclusive); } 194 bool needsResponse() const { return testCmdAttrib(NeedsResponse); } 195 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); } 196 bool hasData() const { return testCmdAttrib(HasData); } 197 bool isReadWrite() const { return isRead() && isWrite(); } 198 bool isLLSC() const { return testCmdAttrib(IsLlsc); } |
199 bool isSWPrefetch() const { return testCmdAttrib(IsSWPrefetch); } 200 bool isHWPrefetch() const { return testCmdAttrib(IsHWPrefetch); } 201 bool isPrefetch() const { return testCmdAttrib(IsSWPrefetch) || 202 testCmdAttrib(IsHWPrefetch); } |
|
199 bool isError() const { return testCmdAttrib(IsError); } 200 bool isPrint() const { return testCmdAttrib(IsPrint); } 201 bool isFlush() const { return testCmdAttrib(IsFlush); } 202 203 const Command 204 responseCommand() const 205 { 206 return commandInfo[cmd].response; --- 465 unchanged lines hidden (view full) --- 672 * Change the packet type based on request type. 673 */ 674 void 675 refineCommand() 676 { 677 if (cmd == MemCmd::ReadReq) { 678 if (req->isLLSC()) { 679 cmd = MemCmd::LoadLockedReq; | 203 bool isError() const { return testCmdAttrib(IsError); } 204 bool isPrint() const { return testCmdAttrib(IsPrint); } 205 bool isFlush() const { return testCmdAttrib(IsFlush); } 206 207 const Command 208 responseCommand() const 209 { 210 return commandInfo[cmd].response; --- 465 unchanged lines hidden (view full) --- 676 * Change the packet type based on request type. 677 */ 678 void 679 refineCommand() 680 { 681 if (cmd == MemCmd::ReadReq) { 682 if (req->isLLSC()) { 683 cmd = MemCmd::LoadLockedReq; |
684 } else if (req->isPrefetch()) { 685 cmd = MemCmd::SoftPFReq; |
|
680 } 681 } else if (cmd == MemCmd::WriteReq) { 682 if (req->isLLSC()) { 683 cmd = MemCmd::StoreCondReq; 684 } else if (req->isSwap()) { 685 cmd = MemCmd::SwapReq; 686 } 687 } --- 306 unchanged lines hidden --- | 686 } 687 } else if (cmd == MemCmd::WriteReq) { 688 if (req->isLLSC()) { 689 cmd = MemCmd::StoreCondReq; 690 } else if (req->isSwap()) { 691 cmd = MemCmd::SwapReq; 692 } 693 } --- 306 unchanged lines hidden --- |