packet.cc (4022:c422464ca16e) packet.cc (4040:eb894f3fc168)
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;

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

89 InvalidCmd, "WriteInvalidateResp" },
90 /* UpgradeReq */
91 { SET3(IsInvalidate, IsRequest, IsUpgrade), InvalidCmd, "UpgradeReq" },
92 /* ReadExReq */
93 { SET4(IsRead, IsInvalidate, IsRequest, NeedsResponse),
94 ReadExResp, "ReadExReq" },
95 /* ReadExResp */
96 { SET4(IsRead, IsInvalidate, IsResponse, HasData),
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;

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

89 InvalidCmd, "WriteInvalidateResp" },
90 /* UpgradeReq */
91 { SET3(IsInvalidate, IsRequest, IsUpgrade), InvalidCmd, "UpgradeReq" },
92 /* ReadExReq */
93 { SET4(IsRead, IsInvalidate, IsRequest, NeedsResponse),
94 ReadExResp, "ReadExReq" },
95 /* ReadExResp */
96 { SET4(IsRead, IsInvalidate, IsResponse, HasData),
97 InvalidCmd, "ReadExResp" }
97 InvalidCmd, "ReadExResp" },
98 /* SwapReq -- for Swap ldstub type operations */
99 { SET4(IsReadWrite, IsRequest, HasData, NeedsResponse),
100 SwapResp, "SwapReq" },
101 /* SwapResp -- for Swap ldstub type operations */
102 { SET3(IsReadWrite, IsResponse, HasData),
103 InvalidCmd, "SwapResp" }
98};
99
100
101/** delete the data pointed to in the data pointer. Ok to call to matter how
102 * data was allocted. */
103void
104Packet::deleteData()
105{

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

233 if (p.result == Packet::Nacked)
234 o << "Nacked ";
235 if (p.result == Packet::Unknown)
236 o << "Inflight ";
237
238 if (p.isRead())
239 o << "Read ";
240 if (p.isWrite())
104};
105
106
107/** delete the data pointed to in the data pointer. Ok to call to matter how
108 * data was allocted. */
109void
110Packet::deleteData()
111{

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

239 if (p.result == Packet::Nacked)
240 o << "Nacked ";
241 if (p.result == Packet::Unknown)
242 o << "Inflight ";
243
244 if (p.isRead())
245 o << "Read ";
246 if (p.isWrite())
241 o << "Read ";
247 o << "Write ";
248 if (p.isReadWrite())
249 o << "Read/Write ";
242 if (p.isInvalidate())
250 if (p.isInvalidate())
243 o << "Read ";
251 o << "Invalidate ";
244 if (p.isRequest())
245 o << "Request ";
246 if (p.isResponse())
247 o << "Response ";
248 if (p.hasData())
249 o << "w/Data ";
250
251 o << std::endl;
252 return o;
253}
254
252 if (p.isRequest())
253 o << "Request ";
254 if (p.isResponse())
255 o << "Response ";
256 if (p.hasData())
257 o << "w/Data ";
258
259 o << std::endl;
260 return o;
261}
262