Skip to content

Commit 7e07186

Browse files
committed
refactoring
Change-Id: I8fc6abe4dbd37dba42ab504caf45abd925f129e4
1 parent edcf497 commit 7e07186

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/types.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,12 @@ constexpr auto ARCH_LLC_MISS_UMASK = 0x41;
169169
#define ATOM_MEM_LOAD_RETIRED_L2_MISS_UMASK (0x02)
170170

171171
// Offcore response events
172-
#define OFFCORE_RESPONSE_0_EVTNR (0xB7)
173-
#define OFFCORE_RESPONSE_1_EVTNR (0xBB)
174-
#define GLC_OFFCORE_RESPONSE_0_EVTNR (0x2A)
175-
#define GLC_OFFCORE_RESPONSE_1_EVTNR (0x2B)
176-
#define OFFCORE_RESPONSE_0_UMASK (1)
177-
#define OFFCORE_RESPONSE_1_UMASK (1)
178-
172+
constexpr auto OFFCORE_RESPONSE_0_EVTNR = 0xB7;
173+
constexpr auto OFFCORE_RESPONSE_1_EVTNR = 0xBB;
174+
constexpr auto GLC_OFFCORE_RESPONSE_0_EVTNR = 0x2A;
175+
constexpr auto GLC_OFFCORE_RESPONSE_1_EVTNR = 0x2B;
176+
constexpr auto OFFCORE_RESPONSE_0_UMASK = 1;
177+
constexpr auto OFFCORE_RESPONSE_1_UMASK = 1;
179178

180179
constexpr auto LOAD_LATENCY_EVTNR = 0xcd;
181180
constexpr auto LOAD_LATENCY_UMASK = 0x01;

0 commit comments

Comments
 (0)