packet.cc (10563:755b18321206) packet.cc (10565:23593fdaadcd)
1/*
2 * Copyright (c) 2011-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

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

199 }
200
201 // offset of functional request into supplied value (could be
202 // negative if partial overlap)
203 int offset = func_start - val_start;
204
205 if (isRead()) {
206 if (func_start >= val_start && func_end <= val_end) {
1/*
2 * Copyright (c) 2011-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

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

199 }
200
201 // offset of functional request into supplied value (could be
202 // negative if partial overlap)
203 int offset = func_start - val_start;
204
205 if (isRead()) {
206 if (func_start >= val_start && func_end <= val_end) {
207 allocate();
208 memcpy(getPtr<uint8_t>(), data + offset, getSize());
209 return true;
210 } else {
211 // Offsets and sizes to copy in case of partial overlap
212 int func_offset;
213 int val_offset;
214 int overlap_size;
215

--- 196 unchanged lines hidden ---
207 memcpy(getPtr<uint8_t>(), data + offset, getSize());
208 return true;
209 } else {
210 // Offsets and sizes to copy in case of partial overlap
211 int func_offset;
212 int val_offset;
213 int overlap_size;
214

--- 196 unchanged lines hidden ---