TCG: Remove unused global variables
authorEvgeny Voevodin <e.voevodin@samsung.com>
Mon, 12 Nov 2012 09:27:49 +0000 (13:27 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 17 Nov 2012 13:53:38 +0000 (13:53 +0000)
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/tcg.c
tcg/tcg.h
translate-all.c

index ea0bd3a7a72376c6be21dc672a37bc94ff7bdc03..4f756962c58b91e96a281e97d614e905907420d7 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -96,10 +96,6 @@ const size_t tcg_op_defs_max = ARRAY_SIZE(tcg_op_defs);
 static TCGRegSet tcg_target_available_regs[2];
 static TCGRegSet tcg_target_call_clobber_regs;
 
-/* XXX: move that inside the context */
-uint16_t *gen_opc_ptr;
-TCGArg *gen_opparam_ptr;
-
 static inline void tcg_out8(TCGContext *s, uint8_t v)
 {
     *s->code_ptr++ = v;
index 6ffec1d47a6dc1d77314b800b4fc16dd7d7ab9a5..9481e35ab4018a98f5ddc7b7e43e7d24baa22044 100644 (file)
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -465,10 +465,6 @@ struct TCGContext {
 };
 
 extern TCGContext tcg_ctx;
-extern uint16_t *gen_opc_ptr;
-extern TCGArg *gen_opparam_ptr;
-extern uint16_t gen_opc_buf[];
-extern TCGArg gen_opparam_buf[];
 
 /* pool based memory allocation */
 
index 5bd2d3711a2696967f8ed930e4a9cbb756e75c9e..d9c2e57861d877694ef9a191a8db2f4d6df6972e 100644 (file)
@@ -33,9 +33,6 @@
 /* code generation context */
 TCGContext tcg_ctx;
 
-uint16_t gen_opc_buf[OPC_BUF_SIZE];
-TCGArg gen_opparam_buf[OPPARAM_BUF_SIZE];
-
 target_ulong gen_opc_pc[OPC_BUF_SIZE];
 uint16_t gen_opc_icount[OPC_BUF_SIZE];
 uint8_t gen_opc_instr_start[OPC_BUF_SIZE];