File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,12 @@ typedef void (*exec_block_func_t)(riscv_t *rv, uintptr_t);
53
53
#if RV32_HAS (T2C )
54
54
void t2c_compile (riscv_t * , block_t * );
55
55
typedef void (* exec_t2c_func_t )(riscv_t * );
56
- #endif
57
56
58
57
#if RV32_HAS (JIT_CACHE )
58
+ /* The jit-cache records the program counters and the entries of executable
59
+ * instructions generated by T2C. Like hardware cache, the old jit-cache will be
60
+ * overridden by the new one which uses the same slot.
61
+ */
59
62
#define MAX_JIT_CACHE_TABLE_ENTRIES (1 << 12)
60
63
61
64
struct jit_cache {
@@ -68,3 +71,4 @@ void jit_cache_exit(struct jit_cache *cache);
68
71
void jit_cache_update (struct jit_cache * cache , uint32_t pc , void * entry );
69
72
void jit_cache_clear (struct jit_cache * cache );
70
73
#endif
74
+ #endif
You can’t perform that action at this time.
0 commit comments