Skip to content

Commit 6ab5812

Browse files
committed
Remove unused option
1 parent aa6201d commit 6ab5812

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,13 @@ endif
140140
ifneq ("$(LLVM_CONFIG)", "")
141141
ifneq ("$(findstring -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS, "$(shell $(LLVM_CONFIG) --cflags)")", "")
142142
ENABLE_T2C := 1
143-
ENABLE_JIT_CACHE := 1
144143
$(call set-feature, T2C)
145-
$(call set-feature, JIT_CACHE)
146144
OBJS_EXT += t2c.o
147145
CFLAGS += -g $(shell $(LLVM_CONFIG) --cflags)
148146
LDFLAGS += $(shell $(LLVM_CONFIG) --libs)
149147
else
150148
ENABLE_T2C := 0
151-
ENABLE_JIT_CACHE := 0
152149
$(call set-feature, T2C)
153-
$(call set-feature, JIT_CACHE)
154150
$(warning No llvm-config-17 installed. Check llvm-config-17 installation in advance)
155151
endif
156152
endif

src/jit.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ typedef void (*exec_block_func_t)(riscv_t *rv, uintptr_t);
5454
void t2c_compile(riscv_t *, block_t *);
5555
typedef void (*exec_t2c_func_t)(riscv_t *);
5656

57-
#if RV32_HAS(JIT_CACHE)
5857
/* The jit-cache records the program counters and the entries of executable
5958
* instructions generated by T2C. Like hardware cache, the old jit-cache will be
6059
* replaced by the new one which uses the same slot.
@@ -75,4 +74,3 @@ void jit_cache_exit(struct jit_cache *cache);
7574
void jit_cache_update(struct jit_cache *cache, uint32_t pc, void *entry);
7675
void jit_cache_clear(struct jit_cache *cache);
7776
#endif
78-
#endif

src/t2c.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ void t2c_compile(riscv_t *rv, block_t *block)
315315
block->hot2 = true;
316316
}
317317

318-
#if RV32_HAS(JIT_CACHE)
319318
struct jit_cache *jit_cache_init()
320319
{
321320
return calloc(N_JIT_CACHE_ENTRIES, sizeof(struct jit_cache));
@@ -338,4 +337,3 @@ void jit_cache_clear(struct jit_cache *cache)
338337
{
339338
memset(cache, 0, N_JIT_CACHE_ENTRIES * sizeof(struct jit_cache));
340339
}
341-
#endif

0 commit comments

Comments
 (0)