0a58e6cacc73b61343c1950a35bc97b959e32cc8
[IRC.git] / Robust / src / Runtime / bamboo / multicorecache.h
1 #ifndef BAMBOO_MULTICORE_CACHE_H
2 #define BAMBOO_MULTICORE_CACHE_H
3
4 #ifdef MULTICORE_GC
5 #ifdef GC_CACHE_ADAPT
6 #define GC_CACHE_SAMPLING_UNIT 100000000
7 #define GC_TILE_TIMER_EVENT_SETTING 10000000 //0  
8
9 // should be consistent with multicoreruntime.h
10 typedef union
11 {
12   unsigned int word;
13   struct
14   {
15     // policy type
16     unsigned int cache_mode   : 2;
17         // Reserved.
18     unsigned int __reserved_0 : 6;
19         // Location Override Target Y
20     unsigned int lotar_y      : 4;
21     // Reserved.
22     unsigned int __reserved_1 : 4;
23     // Location Override Target X
24     unsigned int lotar_x      : 4;
25     // Reserved.
26     unsigned int __reserved_2 : 12;
27   };
28 } bamboo_cache_policy_t;
29
30 #define BAMBOO_CACHE_MODE_LOCAL 0
31 #define BAMBOO_CACHE_MODE_HASH 1
32 #define BAMBOO_CACHE_MODE_NONE 2
33 #define BAMBOO_CACHE_MODE_COORDS 3
34
35 #endif // GC_CACHE_ADAPT
36 #endif // MULTICORE_GC
37
38 #endif