Skip to content

Commit 9cd48ea

Browse files
committed
Add "src/rv32_jit.c" into repository
The 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 c2cfe50 commit 9cd48ea

File tree

3 files changed

+733
-5
lines changed

3 files changed

+733
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ tests/arch-test-target/config.ini
3030
tests/arch-test-target/sail_cSim/riscv_sim_RV32
3131
tests/scimark2/
3232
__pycache__/
33-
src/rv32_jit.c
3433
src/minimal_dtb.h

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,6 @@ ifeq ($(call has, JIT), 1)
257257
$(error JIT mode only supports for x64 and arm64 target currently.)
258258
endif
259259

260-
src/rv32_jit.c:
261-
$(Q)tools/gen-jit-template.py $(CFLAGS) > $@
262-
263260
$(OUT)/jit.o: src/jit.c src/rv32_jit.c
264261
$(VECHO) " CC\t$@\n"
265262
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF $@.d $<
@@ -409,9 +406,10 @@ endif
409406

410407
clean:
411408
$(VECHO) "Cleaning... "
412-
$(Q)$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(BUILD_DTB2C) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT) src/rv32_jit.c
409+
$(Q)$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(BUILD_DTB2C) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT)
413410
$(Q)-$(RM) $(SOFTFLOAT_LIB)
414411
$(Q)$(call notice, [OK])
412+
415413
distclean: clean
416414
$(VECHO) "Deleting all generated files... "
417415
$(Q)$(RM) -r $(OUT)/id1

0 commit comments

Comments
 (0)