Deleted Added
sdiff udiff text old ( 10342:711eb0e64249 ) new ( 10343:a1eea45928e6 )
full compact
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 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;
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 ---