[5914] Remove a few dyngen and dyngen related code
Revision: 5914
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5914 Author: aurel32 Date: 2008-12-07 15:21:23 +0000 (Sun, 07 Dec 2008)
Log Message:
-----------
Remove a few dyngen and dyngen related code
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/Makefile
trunk/Makefile.target
trunk/tcg/README
Removed Paths:
-------------
trunk/dyngen.c
Modified: trunk/Makefile
===================================================================
Makefile +2 -7
@@ -36,7 +36,7 @@ SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) -subdir-%: dyngen$(EXESUF) +subdir-%: $(MAKE) -C $(subst subdir-,,$@) all $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
@@ -195,15 +195,10 @@ qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o osdep.o $(BLOCK_OBJS) $(CC) $(LDFLAGS) -o $@ $^ -lz $(LIBS) -# dyngen host tool -dyngen$(EXESUF): dyngen.c - $(HOST_CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ - clean: # avoid old build problems by removing potentially incorrect old files rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h - rm -f *.o *.d *.a $(TOOLS) dyngen$(EXESUF) TAGS cscope.* *.pod *~ */*~ - rm -rf dyngen.dSYM + rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d $(MAKE) -C tests clean for d in $(TARGET_DIRS); do \
Modified: trunk/Makefile.target
===================================================================
Makefile.target +5 -30
@@ -27,7 +27,6 @@ CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H #CFLAGS+=-Werror LIBS= -DYNGEN=../dyngen$(EXESUF) # user emulator name ifndef TARGET_ARCH2 TARGET_ARCH2=$(TARGET_ARCH)
@@ -186,10 +185,6 @@ # cpu emulator library LIBOBJS=exec.o kqemu.o translate-all.o cpu-exec.o\ translate.o host-utils.o -ifdef CONFIG_DYNGEN_OP -exec.o: dyngen-opc.h -LIBOBJS+=op.o -endif # TCG code generator LIBOBJS+= tcg/tcg.o tcg/tcg-dyngen.o tcg/tcg-runtime.o CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
@@ -261,36 +256,16 @@ # libqemu -ifdef CONFIG_DYNGEN_OP -OPC_H = gen-op.h dyngen-opc.h op.h -endif - libqemu.a: $(LIBOBJS) rm -f $@ $(AR) rcs $@ $(LIBOBJS) -translate.o: translate.c cpu.h $(OPC_H) +translate.o: translate.c cpu.h -translate-all.o: translate-all.c cpu.h $(OPC_H) +translate-all.o: translate-all.c cpu.h -tcg/tcg.o: cpu.h $(OPC_H) +tcg/tcg.o: cpu.h -tcg/tcg-dyngen.o: $(OPC_H) - -tcg/tcg-runtime.o: $(OPC_H) - -op.h: op.o $(DYNGEN) - $(DYNGEN) -o $@ $< - -dyngen-opc.h: op.o $(DYNGEN) - $(DYNGEN) -c -o $@ $< - -gen-op.h: op.o $(DYNGEN) - $(DYNGEN) -g -o $@ $< - -op.o: op.c - $(CC) $(OP_CFLAGS) $(CPPFLAGS) $(I386_CFLAGS) -c -o $@ $< - machine.o: machine.c $(CC) $(OP_CFLAGS) $(CPPFLAGS) -c -o $@ $<
@@ -299,7 +274,7 @@ op_helper.o: op_helper.c $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) $(I386_CFLAGS) -c -o $@ $< -cpu-exec.o: cpu-exec.c $(OPC_H) +cpu-exec.o: cpu-exec.c $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< #########################################################
@@ -807,7 +782,7 @@ $(CC) $(CPPFLAGS) -c -o $@ $< clean: - rm -f *.o *.a *~ $(PROGS) gen-op.h dyngen-opc.h op.h nwfpe/*.o fpu/*.o + rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o rm -f *.d */*.d tcg/*.o install: all
Deleted: trunk/dyngen.c
===================================================================
dyngen.c +0 -2794
2,794 lines not on this page · raw message
Modified: trunk/tcg/README
===================================================================
tcg/README +4 -17
@@ -60,9 +60,8 @@ - Basic blocks end after branches (e.g. brcond_i32 instruction), goto_tb and exit_tb instructions. -- Basic blocks end before legacy dyngen operations. -- Basic blocks start after the end of a previous basic block, at a - set_label instruction or after a legacy dyngen operation. +- Basic blocks start after the end of a previous basic block, or at a + set_label instruction. After the end of a basic block, the content of temporaries is destroyed, but local temporaries and globals are preserved.
@@ -423,27 +422,15 @@ target, functions must be able to return 2 values in registers for 64 bit return type. -5) Migration from dyngen to TCG +5) Recommended coding rules for best performance -TCG is backward compatible with QEMU "dyngen" operations. It means -that TCG instructions can be freely mixed with dyngen operations. It -is expected that QEMU targets will be progressively fully converted to -TCG. Once a target is fully converted to TCG, it will be possible -to apply more optimizations because more registers will be free for -the generated code. - -The exception model is the same as the dyngen one. - -6) Recommended coding rules for best performance - - Use globals to represent the parts of the QEMU CPU state which are often modified, e.g. the integer registers and the condition codes. TCG will be able to use host registers to store them. - Avoid globals stored in fixed registers. They must be used only to store the pointer to the CPU state and possibly to store a pointer - to a register window. The other uses are to ensure backward - compatibility with dyngen during the porting a new target to TCG. + to a register window. - Use temporaries. Use local temporaries only when really needed, e.g. when you need to use a value after a jump. Local temporaries