packet.cc (10885:3ac92bf1f31f) packet.cc (10886:fdd4a895f325)
1/*
2 * Copyright (c) 2011-2015 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

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

96 { SET4(IsRead, IsRequest, IsHWPrefetch, NeedsResponse),
97 HardPFResp, "HardPFReq" },
98 /* SoftPFResp */
99 { SET4(IsRead, IsResponse, IsSWPrefetch, HasData),
100 InvalidCmd, "SoftPFResp" },
101 /* HardPFResp */
102 { SET4(IsRead, IsResponse, IsHWPrefetch, HasData),
103 InvalidCmd, "HardPFResp" },
1/*
2 * Copyright (c) 2011-2015 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

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

96 { SET4(IsRead, IsRequest, IsHWPrefetch, NeedsResponse),
97 HardPFResp, "HardPFReq" },
98 /* SoftPFResp */
99 { SET4(IsRead, IsResponse, IsSWPrefetch, HasData),
100 InvalidCmd, "SoftPFResp" },
101 /* HardPFResp */
102 { SET4(IsRead, IsResponse, IsHWPrefetch, HasData),
103 InvalidCmd, "HardPFResp" },
104 /* WriteInvalidateReq */
105 { SET6(IsWrite, NeedsExclusive, IsInvalidate,
106 IsRequest, HasData, NeedsResponse),
107 WriteInvalidateResp, "WriteInvalidateReq" },
108 /* WriteInvalidateResp */
109 { SET3(IsWrite, NeedsExclusive, IsResponse),
110 InvalidCmd, "WriteInvalidateResp" },
104 /* WriteLineReq */
105 { SET5(IsWrite, NeedsExclusive, IsRequest, NeedsResponse, HasData),
106 WriteResp, "WriteLineReq" },
111 /* UpgradeReq */
112 { SET5(IsInvalidate, NeedsExclusive, IsUpgrade, IsRequest, NeedsResponse),
113 UpgradeResp, "UpgradeReq" },
114 /* SCUpgradeReq: response could be UpgradeResp or UpgradeFailResp */
115 { SET6(IsInvalidate, NeedsExclusive, IsUpgrade, IsLlsc,
116 IsRequest, NeedsResponse),
117 UpgradeResp, "SCUpgradeReq" },
118 /* UpgradeResp */

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

177 { SET3(IsRead, IsResponse, IsError), InvalidCmd, "FunctionalReadError" },
178 /* FunctionalWriteError */
179 { SET3(IsWrite, IsResponse, IsError), InvalidCmd, "FunctionalWriteError" },
180 /* PrintReq */
181 { SET2(IsRequest, IsPrint), InvalidCmd, "PrintReq" },
182 /* Flush Request */
183 { SET3(IsRequest, IsFlush, NeedsExclusive), InvalidCmd, "FlushReq" },
184 /* Invalidation Request */
107 /* UpgradeReq */
108 { SET5(IsInvalidate, NeedsExclusive, IsUpgrade, IsRequest, NeedsResponse),
109 UpgradeResp, "UpgradeReq" },
110 /* SCUpgradeReq: response could be UpgradeResp or UpgradeFailResp */
111 { SET6(IsInvalidate, NeedsExclusive, IsUpgrade, IsLlsc,
112 IsRequest, NeedsResponse),
113 UpgradeResp, "SCUpgradeReq" },
114 /* UpgradeResp */

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

173 { SET3(IsRead, IsResponse, IsError), InvalidCmd, "FunctionalReadError" },
174 /* FunctionalWriteError */
175 { SET3(IsWrite, IsResponse, IsError), InvalidCmd, "FunctionalWriteError" },
176 /* PrintReq */
177 { SET2(IsRequest, IsPrint), InvalidCmd, "PrintReq" },
178 /* Flush Request */
179 { SET3(IsRequest, IsFlush, NeedsExclusive), InvalidCmd, "FlushReq" },
180 /* Invalidation Request */
185 { SET3(NeedsExclusive, IsInvalidate, IsRequest),
186 InvalidCmd, "InvalidationReq" },
181 { SET4(IsInvalidate, IsRequest, NeedsExclusive, NeedsResponse),
182 InvalidateResp, "InvalidateReq" },
183 /* Invalidation Response */
184 { SET3(IsInvalidate, IsResponse, NeedsExclusive),
185 InvalidCmd, "InvalidateResp" }
187};
188
189bool
190Packet::checkFunctional(Printable *obj, Addr addr, bool is_secure, int size,
191 uint8_t *_data)
192{
193 Addr func_start = getAddr();
194 Addr func_end = getAddr() + getSize() - 1;

--- 209 unchanged lines hidden ---
186};
187
188bool
189Packet::checkFunctional(Printable *obj, Addr addr, bool is_secure, int size,
190 uint8_t *_data)
191{
192 Addr func_start = getAddr();
193 Addr func_end = getAddr() + getSize() - 1;

--- 209 unchanged lines hidden ---