Skip to contentSkip to conversation

[5922] Some cleanups after dyngen removal

Qemu-devel Aurelien Jarno 1 participant 1 message Dec 7, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 5922

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5922
Author:   aurel32
Date:     2008-12-07 18:15:45 +0000 (Sun, 07 Dec 2008)

Log Message:
-----------
Some cleanups after dyngen removal

this patch removes some now unused things after dyngen removal.

1. dyngen-exec.h: op_param, op _jmp and some associated macros are now unused;
2. Makefile.target: tcg-dyngen is not needed anymore
2. tcg/tcg-op.h, tcg/tcg-opc.h: gen-op.h is dead
3. tcg.c:
- INDEX_op_end is now the first op
- CONFIG_DYNGEN_OP is never defined
4. tcg.h: dyngen_op not needed anymore
5. exec-all.h: remove some ASM macros.

Modified Paths:
--------------
trunk/Makefile.target
trunk/dyngen-exec.h
trunk/exec-all.h
trunk/tcg/tcg-op.h
trunk/tcg/tcg-opc.h
trunk/tcg/tcg.c
trunk/tcg/tcg.h

Removed Paths:
-------------
trunk/tcg/tcg-dyngen.c

Modified: trunk/Makefile.target
===================================================================

Makefile.target +1 -1
@@ -186,7 +186,7 @@
 LIBOBJS=exec.o kqemu.o translate-all.o cpu-exec.o\
         translate.o host-utils.o
 # TCG code generator
-LIBOBJS+= tcg/tcg.o tcg/tcg-dyngen.o tcg/tcg-runtime.o
+LIBOBJS+= tcg/tcg.o tcg/tcg-runtime.o
 CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
 ifeq ($(ARCH),sparc64)
 CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc

Modified: trunk/dyngen-exec.h
===================================================================

dyngen-exec.h +0 -77

89 lines not on this page · raw message

Modified: trunk/exec-all.h
===================================================================

exec-all.h +0 -14
@@ -267,20 +267,6 @@
 
 TranslationBlock *tb_find_pc(unsigned long pc_ptr);
 
-#if defined(_WIN32)
-#define ASM_DATA_SECTION ".section \".data\"\n"
-#define ASM_PREVIOUS_SECTION ".section .text\n"
-#elif defined(__APPLE__)
-#define ASM_DATA_SECTION ".data\n"
-#define ASM_PREVIOUS_SECTION ".text\n"
-#else
-#define ASM_DATA_SECTION ".section \".data\"\n"
-#define ASM_PREVIOUS_SECTION ".previous\n"
-#endif
-
-#define ASM_OP_LABEL_NAME(n, opname) \
-    ASM_NAME(__op_label) #n "." ASM_NAME(opname)
-
 extern CPUWriteMemoryFunc *io_mem_write[IO_MEM_NB_ENTRIES][4];
 extern CPUReadMemoryFunc *io_mem_read[IO_MEM_NB_ENTRIES][4];
 extern void *io_mem_opaque[IO_MEM_NB_ENTRIES];

Deleted: trunk/tcg/tcg-dyngen.c
===================================================================

tcg/tcg-dyngen.c +0 -431

431 lines not on this page · raw message

Modified: trunk/tcg/tcg-op.h
===================================================================

tcg/tcg-op.h +0 -5
@@ -23,11 +23,6 @@
  */
 #include "tcg.h"
 
-#ifdef CONFIG_DYNGEN_OP
-/* legacy dyngen operations */
-#include "gen-op.h"
-#endif
-
 int gen_new_label(void);
 
 static inline void tcg_gen_op1_i32(int opc, TCGv_i32 arg1)

Modified: trunk/tcg/tcg-opc.h
===================================================================

tcg/tcg-opc.h +0 -4
@@ -21,10 +21,6 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
-#ifdef CONFIG_DYNGEN_OP
-#include "dyngen-opc.h"
-#endif
-
 #ifndef DEF2
 #define DEF2(name, oargs, iargs, cargs, flags) DEF(name, oargs + iargs + cargs, 0)
 #endif

Modified: trunk/tcg/tcg.c
===================================================================

tcg/tcg.c +38 -61

117 lines not on this page · raw message

Modified: trunk/tcg/tcg.h
===================================================================

tcg/tcg.h +0 -2
@@ -449,8 +449,6 @@
 const TCGArg *tcg_gen_code_op(TCGContext *s, int opc, const TCGArg *args1,
                               unsigned int dead_iargs);
 
-const TCGArg *dyngen_op(TCGContext *s, int opc, const TCGArg *opparam_ptr);
-
 /* tcg-runtime.c */
 int64_t tcg_helper_shl_i64(int64_t arg1, int64_t arg2);
 int64_t tcg_helper_shr_i64(int64_t arg1, int64_t arg2);