gem5  v20.1.0.0
Macros
packet.cc File Reference
#include "mem/packet.hh"
#include <algorithm>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include "base/cprintf.hh"
#include "base/logging.hh"
#include "base/trace.hh"
#include "mem/packet_access.hh"

Go to the source code of this file.

Macros

#define SET1(a1)   (1 << (a1))
 
#define SET2(a1, a2)   (SET1(a1) | SET1(a2))
 
#define SET3(a1, a2, a3)   (SET2(a1, a2) | SET1(a3))
 
#define SET4(a1, a2, a3, a4)   (SET3(a1, a2, a3) | SET1(a4))
 
#define SET5(a1, a2, a3, a4, a5)   (SET4(a1, a2, a3, a4) | SET1(a5))
 
#define SET6(a1, a2, a3, a4, a5, a6)   (SET5(a1, a2, a3, a4, a5) | SET1(a6))
 
#define SET7(a1, a2, a3, a4, a5, a6, a7)
 

Detailed Description

Definition of the Packet Class, a packet is a transaction occuring between a single level of the memory heirarchy (ie L1->L2).

Definition in file packet.cc.

Macro Definition Documentation

◆ SET1

#define SET1 (   a1)    (1 << (a1))

Definition at line 62 of file packet.cc.

◆ SET2

#define SET2 (   a1,
  a2 
)    (SET1(a1) | SET1(a2))

Definition at line 63 of file packet.cc.

◆ SET3

#define SET3 (   a1,
  a2,
  a3 
)    (SET2(a1, a2) | SET1(a3))

Definition at line 64 of file packet.cc.

◆ SET4

#define SET4 (   a1,
  a2,
  a3,
  a4 
)    (SET3(a1, a2, a3) | SET1(a4))

Definition at line 65 of file packet.cc.

◆ SET5

#define SET5 (   a1,
  a2,
  a3,
  a4,
  a5 
)    (SET4(a1, a2, a3, a4) | SET1(a5))

Definition at line 66 of file packet.cc.

◆ SET6

#define SET6 (   a1,
  a2,
  a3,
  a4,
  a5,
  a6 
)    (SET5(a1, a2, a3, a4, a5) | SET1(a6))

Definition at line 67 of file packet.cc.

◆ SET7

#define SET7 (   a1,
  a2,
  a3,
  a4,
  a5,
  a6,
  a7 
)
Value:
(SET6(a1, a2, a3, a4, a5, a6) | \
SET1(a7))

Definition at line 68 of file packet.cc.

SET6
#define SET6(a1, a2, a3, a4, a5, a6)
Definition: packet.cc:67
ArmISA::a1
Bitfield< 22 > a1
Definition: miscregs_types.hh:495

Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17