-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcache_utils.h
29 lines (24 loc) · 918 Bytes
/
cache_utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
void clflush (void *p);
void clflushopt (void *p);
void clflush_f (void *p);
uint64_t rdtsc (void);
uint64_t rdtsc_cripple (uint64_t cycle_granularity);
uint64_t rdtscp64 (void);
uint32_t rdtscp32 (void);
void maccess (void *p);
void mwrite (void *v);
void mwrite_v (void *v, int val);
int mread (void *v);
int time_mread (void *adrs);
int time_prefetch (void *adrs);
int time_mread_nofence (void *adrs);
void prefetchNTA(void* p);
void prefetchNTANoFence(void* p);
void prefetchT2(void* p);
void prefetchNTADouble(void* p, void* p2);
void prefetchRUN(void* p, void* p2);
#define flush(x) clflush_f(x)
#define flush_nofence(x) clflush(x)
#define memwrite(x) mwrite(x)
#define memread(x) mread(x)