packet.cc (11744:5d33c6972dda) | packet.cc (11793:ef606668d247) |
---|---|
1/* 2 * Copyright (c) 2011-2016 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 --- 34 unchanged lines hidden (view full) --- 43 */ 44 45/** 46 * @file 47 * Definition of the Packet Class, a packet is a transaction occuring 48 * between a single level of the memory heirarchy (ie L1->L2). 49 */ 50 | 1/* 2 * Copyright (c) 2011-2016 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 --- 34 unchanged lines hidden (view full) --- 43 */ 44 45/** 46 * @file 47 * Definition of the Packet Class, a packet is a transaction occuring 48 * between a single level of the memory heirarchy (ie L1->L2). 49 */ 50 |
51#include "mem/packet.hh" 52 |
|
51#include <cstring> 52#include <iostream> 53 54#include "base/cprintf.hh" 55#include "base/misc.hh" 56#include "base/trace.hh" | 53#include <cstring> 54#include <iostream> 55 56#include "base/cprintf.hh" 57#include "base/misc.hh" 58#include "base/trace.hh" |
57#include "mem/packet.hh" | |
58 59using namespace std; 60 61// The one downside to bitsets is that static initializers can get ugly. 62#define SET1(a1) (1 << (a1)) 63#define SET2(a1, a2) (SET1(a1) | SET1(a2)) 64#define SET3(a1, a2, a3) (SET2(a1, a2) | SET1(a3)) 65#define SET4(a1, a2, a3, a4) (SET3(a1, a2, a3) | SET1(a4)) --- 356 unchanged lines hidden --- | 59 60using namespace std; 61 62// The one downside to bitsets is that static initializers can get ugly. 63#define SET1(a1) (1 << (a1)) 64#define SET2(a1, a2) (SET1(a1) | SET1(a2)) 65#define SET3(a1, a2, a3) (SET2(a1, a2) | SET1(a3)) 66#define SET4(a1, a2, a3, a4) (SET3(a1, a2, a3) | SET1(a4)) --- 356 unchanged lines hidden --- |