Skip to content

Commit

Permalink
Add "src/rv32_jit.c"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vacantron committed Dec 18, 2024
1 parent ae71305 commit a965b24
Show file tree
Hide file tree
Showing 4 changed files with 714 additions and 279 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ tests/arch-test-target/config.ini
tests/arch-test-target/sail_cSim/riscv_sim_RV32
tests/scimark2/
__pycache__/
src/rv32_jit.c
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ ifeq ($(call has, JIT), 1)
$(error JIT mode only supports for x64 and arm64 target currently.)
endif

src/rv32_jit.c:
$(Q)tools/gen-jit-template.py $(CFLAGS) > $@

$(OUT)/jit.o: src/jit.c src/rv32_jit.c
$(VECHO) " CC\t$@\n"
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF $@.d $<
Expand Down Expand Up @@ -353,7 +350,7 @@ endif
endif

clean:
$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT) src/rv32_jit.c
$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT)
distclean: clean
-$(RM) $(DOOM_DATA) $(QUAKE_DATA) $(BUILDROOT_DATA) $(LINUX_DATA)
$(RM) -r $(OUT)/linux-image
Expand Down
Loading

0 comments on commit a965b24

Please sign in to comment.