Deleted Added
sdiff udiff text old ( 10572:fc4c90a7d2f5 ) new ( 10583:d1e1e8588881 )
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

--- 163 unchanged lines hidden (view full) ---

172 bool
173 testCmdAttrib(MemCmd::Attribute attrib) const
174 {
175 return commandInfo[cmd].attributes[attrib] != 0;
176 }
177
178 public:
179
180 bool isRead() const { return testCmdAttrib(IsRead); }
181 bool isWrite() const { return testCmdAttrib(IsWrite); }
182 bool isUpgrade() const { return testCmdAttrib(IsUpgrade); }
183 bool isRequest() const { return testCmdAttrib(IsRequest); }
184 bool isResponse() const { return testCmdAttrib(IsResponse); }
185 bool needsExclusive() const { return testCmdAttrib(NeedsExclusive); }
186 bool needsResponse() const { return testCmdAttrib(NeedsResponse); }
187 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); }
188
189 /**
190 * Check if this particular packet type carries payload data. Note
191 * that this does not reflect if the data pointer of the packet is
192 * valid or not.
193 */
194 bool hasData() const { return testCmdAttrib(HasData); }
195 bool isLLSC() const { return testCmdAttrib(IsLlsc); }

--- 294 unchanged lines hidden (view full) ---

490
491 /// Return the string name of the cmd field (for debugging and
492 /// tracing).
493 const std::string &cmdString() const { return cmd.toString(); }
494
495 /// Return the index of this command.
496 inline int cmdToIndex() const { return cmd.toInt(); }
497
498 bool isRead() const { return cmd.isRead(); }
499 bool isWrite() const { return cmd.isWrite(); }
500 bool isUpgrade() const { return cmd.isUpgrade(); }
501 bool isRequest() const { return cmd.isRequest(); }
502 bool isResponse() const { return cmd.isResponse(); }
503 bool needsExclusive() const { return cmd.needsExclusive(); }
504 bool needsResponse() const { return cmd.needsResponse(); }
505 bool isInvalidate() const { return cmd.isInvalidate(); }
506 bool hasData() const { return cmd.hasData(); }
507 bool isLLSC() const { return cmd.isLLSC(); }
508 bool isError() const { return cmd.isError(); }
509 bool isPrint() const { return cmd.isPrint(); }
510 bool isFlush() const { return cmd.isFlush(); }
511
512 // Snoop flags
513 void assertMemInhibit()
514 {
515 assert(isRequest());
516 assert(!flags.isSet(MEM_INHIBIT));
517 flags.set(MEM_INHIBIT);
518 }

--- 501 unchanged lines hidden ---