File tree Expand file tree Collapse file tree 3 files changed +0
-8
lines changed Expand file tree Collapse file tree 3 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -140,17 +140,13 @@ endif
140
140
ifneq ("$(LLVM_CONFIG ) ", "")
141
141
ifneq ("$(findstring -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS, "$(shell $(LLVM_CONFIG ) --cflags) ") ", "")
142
142
ENABLE_T2C := 1
143
- ENABLE_JIT_CACHE := 1
144
143
$(call set-feature, T2C)
145
- $(call set-feature, JIT_CACHE)
146
144
OBJS_EXT += t2c.o
147
145
CFLAGS += -g $(shell $(LLVM_CONFIG ) --cflags)
148
146
LDFLAGS += $(shell $(LLVM_CONFIG ) --libs)
149
147
else
150
148
ENABLE_T2C := 0
151
- ENABLE_JIT_CACHE := 0
152
149
$(call set-feature, T2C)
153
- $(call set-feature, JIT_CACHE)
154
150
$(warning No llvm-config-17 installed. Check llvm-config-17 installation in advance)
155
151
endif
156
152
endif
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ typedef void (*exec_block_func_t)(riscv_t *rv, uintptr_t);
54
54
void t2c_compile (riscv_t * , block_t * );
55
55
typedef void (* exec_t2c_func_t )(riscv_t * );
56
56
57
- #if RV32_HAS (JIT_CACHE )
58
57
/* The jit-cache records the program counters and the entries of executable
59
58
* instructions generated by T2C. Like hardware cache, the old jit-cache will be
60
59
* replaced by the new one which uses the same slot.
@@ -75,4 +74,3 @@ void jit_cache_exit(struct jit_cache *cache);
75
74
void jit_cache_update (struct jit_cache * cache , uint32_t pc , void * entry );
76
75
void jit_cache_clear (struct jit_cache * cache );
77
76
#endif
78
- #endif
Original file line number Diff line number Diff line change @@ -315,7 +315,6 @@ void t2c_compile(riscv_t *rv, block_t *block)
315
315
block -> hot2 = true;
316
316
}
317
317
318
- #if RV32_HAS (JIT_CACHE )
319
318
struct jit_cache * jit_cache_init ()
320
319
{
321
320
return calloc (N_JIT_CACHE_ENTRIES , sizeof (struct jit_cache ));
@@ -338,4 +337,3 @@ void jit_cache_clear(struct jit_cache *cache)
338
337
{
339
338
memset (cache , 0 , N_JIT_CACHE_ENTRIES * sizeof (struct jit_cache ));
340
339
}
341
- #endif
You can’t perform that action at this time.
0 commit comments