Skip to content

Commit 30f01db

Browse files
committed
Add "src/rv32_jit.c"
This file is generated by "tools/gen-jit-template.py" To bring up the Linux Kernel to just-in-time (JIT) compilation, we need to update the memory-related operation with the memory management unit. However, the current "src/rv32_jit.c" was generated by the template. That template reduced the rework for the repeated statements, but also reduced the flexibility and the intuitiveness for bring up the new feature. In this commit, we deprecate that template and just use a regular file for the flexibility.
1 parent ff829ee commit 30f01db

File tree

4 files changed

+714
-279
lines changed

4 files changed

+714
-279
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ tests/arch-test-target/config.ini
2828
tests/arch-test-target/sail_cSim/riscv_sim_RV32
2929
tests/scimark2/
3030
__pycache__/
31-
src/rv32_jit.c

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ ifeq ($(call has, JIT), 1)
194194
$(error JIT mode only supports for x64 and arm64 target currently.)
195195
endif
196196

197-
src/rv32_jit.c:
198-
$(Q)tools/gen-jit-template.py $(CFLAGS) > $@
199-
200197
$(OUT)/jit.o: src/jit.c src/rv32_jit.c
201198
$(VECHO) " CC\t$@\n"
202199
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF $@.d $<
@@ -353,7 +350,7 @@ endif
353350
endif
354351

355352
clean:
356-
$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT) src/rv32_jit.c
353+
$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT)
357354
distclean: clean
358355
-$(RM) $(DOOM_DATA) $(QUAKE_DATA) $(BUILDROOT_DATA) $(LINUX_DATA)
359356
$(RM) -r $(OUT)/linux-image

0 commit comments

Comments
 (0)