[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 7/7] TCG: Remove unused global variables
From: |
Evgeny Voevodin |
Subject: |
[Qemu-devel] [PATCH v2 7/7] TCG: Remove unused global variables |
Date: |
Tue, 23 Oct 2012 10:21:18 +0400 |
From: Evgeny <address@hidden>
Signed-off-by: Evgeny Voevodin <address@hidden>
---
tcg/tcg.c | 4 ----
tcg/tcg.h | 4 ----
translate-all.c | 3 ---
3 files changed, 11 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index f332463..53bf109 100644
--- 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;
diff --git a/tcg/tcg.h b/tcg/tcg.h
index d326b36..19426f9 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -432,10 +432,6 @@ struct TCGContext {
extern TCGContext tcg_ctx;
extern TCGContext *tcg_cur_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 */
diff --git a/translate-all.c b/translate-all.c
index ccdcddf..3351012 100644
--- a/translate-all.c
+++ b/translate-all.c
@@ -34,9 +34,6 @@
TCGContext tcg_ctx;
TCGContext *tcg_cur_ctx = &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];
--
1.7.9.5
- [Qemu-devel] [PATCH v2 0/7] TCG global variables clean-up, Evgeny Voevodin, 2012/10/23
- [Qemu-devel] [PATCH v2 7/7] TCG: Remove unused global variables,
Evgeny Voevodin <=
- [Qemu-devel] [PATCH v2 1/7] tcg/tcg.h: Duplicate global TCG variables in TCGContext, Evgeny Voevodin, 2012/10/23
- [Qemu-devel] [PATCH v2 2/7] translate-all.c: Introduce TCGContext *tcg_cur_ctx, Evgeny Voevodin, 2012/10/23
- [Qemu-devel] [PATCH v2 6/7] TCG: Use gen_opparam_buf from context instead of global variable., Evgeny Voevodin, 2012/10/23
- [Qemu-devel] [PATCH v2 4/7] TCG: Use gen_opparam_ptr from context instead of global variable., Evgeny Voevodin, 2012/10/23
- [Qemu-devel] [PATCH v2 5/7] TCG: Use gen_opc_buf from context instead of global variable., Evgeny Voevodin, 2012/10/23
- [Qemu-devel] [PATCH v2 3/7] TCG: Use gen_opc_ptr from context instead of global variable., Evgeny Voevodin, 2012/10/23
- Re: [Qemu-devel] [PATCH v2 0/7] TCG global variables clean-up, Evgeny Voevodin, 2012/10/23
- Re: [Qemu-devel] [PATCH v2 0/7] TCG global variables clean-up, Evgeny Voevodin, 2012/10/24