Skip to content

Commit 3d43867

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 d5f0fc2 commit 3d43867

File tree

3 files changed

+732
-5
lines changed

3 files changed

+732
-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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,6 @@ ifeq ($(call has, JIT), 1)
259259
$(error JIT mode only supports for x64 and arm64 target currently.)
260260
endif
261261

262-
src/rv32_jit.c:
263-
$(Q)tools/gen-jit-template.py $(CFLAGS) > $@
264-
265262
$(OUT)/jit.o: src/jit.c src/rv32_jit.c
266263
$(VECHO) " CC\t$@\n"
267264
$(Q)$(CC) -o $@ $(CFLAGS) -c -MMD -MF $@.d $<
@@ -414,7 +411,7 @@ endif
414411
endif
415412

416413
clean:
417-
$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(BUILD_DTB2C) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT) src/rv32_jit.c
414+
$(RM) $(BIN) $(OBJS) $(DEV_OBJS) $(BUILD_DTB) $(BUILD_DTB2C) $(HIST_BIN) $(HIST_OBJS) $(deps) $(WEB_FILES) $(CACHE_OUT)
418415
distclean: clean
419416
-$(RM) $(DOOM_DATA) $(QUAKE_DATA) $(BUILDROOT_DATA) $(LINUX_DATA)
420417
$(RM) -r $(OUT)/linux-image

0 commit comments

Comments
 (0)