Lines Matching defs:MemCmd
77 class MemCmd
192 testCmdAttrib(MemCmd::Attribute attrib) const
242 MemCmd(Command _cmd) : cmd(_cmd) { }
243 MemCmd(int _cmd) : cmd((Command)_cmd) { }
244 MemCmd() : cmd(InvalidCmd) { }
246 bool operator==(MemCmd c2) const { return (cmd == c2.cmd); }
247 bool operator!=(MemCmd c2) const { return (cmd != c2.cmd); }
321 typedef MemCmd::Command Command;
324 MemCmd cmd;
553 MemCmd resp_cmd = cmd.responseCommand();
563 return (cmd == MemCmd::WriteReq || cmd == MemCmd::WriteLineReq) &&
672 (cmd.isEviction() || cmd == MemCmd::WriteClean));
723 cmd = MemCmd::BadAddressError;
778 cmd = MemCmd::WriteReq;
790 cmd = MemCmd::ReadReq;
798 Packet(const RequestPtr &_req, MemCmd _cmd)
820 Packet(const RequestPtr &_req, MemCmd _cmd, int _blkSize, PacketId _id = 0)
876 * Generate the appropriate read MemCmd based on the Request flags.
878 static MemCmd
882 return MemCmd::LoadLockedReq;
884 return MemCmd::SoftPFExReq;
886 return MemCmd::SoftPFReq;
888 return MemCmd::ReadReq;
892 * Generate the appropriate write MemCmd based on the Request flags.
894 static MemCmd
898 return MemCmd::StoreCondReq;
900 return MemCmd::SwapReq;
902 return req->isCacheClean() ? MemCmd::CleanInvalidReq :
903 MemCmd::InvalidateReq;
905 return MemCmd::CleanSharedReq;
907 return MemCmd::WriteReq;
912 * Fine-tune the MemCmd type if it's not a vanilla read or write.
967 cmd = MemCmd::FunctionalWriteError;
969 cmd = MemCmd::FunctionalReadError;
1311 return cmd == MemCmd::HardPFReq || isEviction();
1321 return cmd == MemCmd::CleanEvict || cmd == MemCmd::WritebackClean;
1327 return (cmd == MemCmd::WriteReq && !req->getByteEnable().empty());