Deleted Added
sdiff udiff text old ( 4026:7c8c480474c6 ) new ( 4040:eb894f3fc168 )
full compact
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

83 SoftPFResp,
84 HardPFResp,
85 InvalidateReq,
86 WriteInvalidateReq,
87 WriteInvalidateResp,
88 UpgradeReq,
89 ReadExReq,
90 ReadExResp,
91 NUM_MEM_CMDS
92 };
93
94 private:
95 /** List of command attributes. */
96 enum Attribute
97 {
98 IsRead,
99 IsWrite,
100 IsPrefetch,
101 IsInvalidate,
102 IsRequest,
103 IsResponse,
104 NeedsResponse,
105 IsSWPrefetch,
106 IsHWPrefetch,
107 IsUpgrade,
108 HasData,
109 NUM_COMMAND_ATTRIBUTES
110 };
111
112 /** Structure that defines attributes and other data associated
113 * with a Command. */
114 struct CommandInfo {
115 /** Set of attribute flags. */
116 const std::bitset<NUM_COMMAND_ATTRIBUTES> attributes;

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

136
137 bool isRead() const { return testCmdAttrib(IsRead); }
138 bool isWrite() const { return testCmdAttrib(IsWrite); }
139 bool isRequest() const { return testCmdAttrib(IsRequest); }
140 bool isResponse() const { return testCmdAttrib(IsResponse); }
141 bool needsResponse() const { return testCmdAttrib(NeedsResponse); }
142 bool isInvalidate() const { return testCmdAttrib(IsInvalidate); }
143 bool hasData() const { return testCmdAttrib(HasData); }
144
145 const Command responseCommand() const {
146 return commandInfo[cmd].response;
147 }
148
149 /** Return the string to a cmd given by idx. */
150 const std::string &toString() const {
151 return commandInfo[cmd].str;

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

295
296 bool isRead() const { return cmd.isRead(); }
297 bool isWrite() const { return cmd.isWrite(); }
298 bool isRequest() const { return cmd.isRequest(); }
299 bool isResponse() const { return cmd.isResponse(); }
300 bool needsResponse() const { return cmd.needsResponse(); }
301 bool isInvalidate() const { return cmd.isInvalidate(); }
302 bool hasData() const { return cmd.hasData(); }
303
304 bool isCacheFill() const { return (flags & CACHE_LINE_FILL) != 0; }
305 bool isNoAllocate() const { return (flags & NO_ALLOCATE) != 0; }
306 bool isCompressed() const { return (flags & COMPRESSED) != 0; }
307
308 bool nic_pkt() { panic("Unimplemented"); M5_DUMMY_RETURN }
309
310 /** Possible results of a packet's request. */

--- 209 unchanged lines hidden ---