abstract_mem.cc (9663:45df88079f04) abstract_mem.cc (9931:086fc5c038af)
1/*
2 * Copyright (c) 2010-2012 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

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

268 }
269
270 return allowStore;
271}
272
273
274#if TRACING_ON
275
1/*
2 * Copyright (c) 2010-2012 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

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

268 }
269
270 return allowStore;
271}
272
273
274#if TRACING_ON
275
276#define CASE(A, T) \
277 case sizeof(T): \
278 DPRINTF(MemoryAccess,"%s of size %i on address 0x%x data 0x%x\n", \
279 A, pkt->getSize(), pkt->getAddr(), pkt->get<T>()); \
276#define CASE(A, T) \
277 case sizeof(T): \
278 DPRINTF(MemoryAccess,"%s from %s of size %i on address 0x%x data " \
279 "0x%x %c\n", A, system()->getMasterName(pkt->req->masterId()),\
280 pkt->getSize(), pkt->getAddr(), pkt->get<T>(), \
281 pkt->req->isUncacheable() ? 'U' : 'C'); \
280 break
281
282
283#define TRACE_PACKET(A) \
284 do { \
285 switch (pkt->getSize()) { \
286 CASE(A, uint64_t); \
287 CASE(A, uint32_t); \
288 CASE(A, uint16_t); \
289 CASE(A, uint8_t); \
290 default: \
282 break
283
284
285#define TRACE_PACKET(A) \
286 do { \
287 switch (pkt->getSize()) { \
288 CASE(A, uint64_t); \
289 CASE(A, uint32_t); \
290 CASE(A, uint16_t); \
291 CASE(A, uint8_t); \
292 default: \
291 DPRINTF(MemoryAccess, "%s of size %i on address 0x%x\n", \
292 A, pkt->getSize(), pkt->getAddr()); \
293 DDUMP(MemoryAccess, pkt->getPtr<uint8_t>(), pkt->getSize());\
294 } \
293 DPRINTF(MemoryAccess, "%s from %s of size %i on address 0x%x %c\n",\
294 A, system()->getMasterName(pkt->req->masterId()), \
295 pkt->getSize(), pkt->getAddr(), \
296 pkt->req->isUncacheable() ? 'U' : 'C'); \
297 DDUMP(MemoryAccess, pkt->getPtr<uint8_t>(), pkt->getSize()); \
298 } \
295 } while (0)
296
297#else
298
299#define TRACE_PACKET(A)
300
301#endif
302

--- 116 unchanged lines hidden ---
299 } while (0)
300
301#else
302
303#define TRACE_PACKET(A)
304
305#endif
306

--- 116 unchanged lines hidden ---