Patchwork [v5,2/7] tcg/tcg.h: Duplicate global TCG variables in TCGContext

login
register
mail settings
Submitter Evgeny Voevodin
Date Nov. 6, 2012, 4:41 a.m.
Message ID <1352176885-13324-3-git-send-email-e.voevodin@samsung.com>
Download mbox | patch
Permalink /patch/197401/
State New
Headers show

Comments

Evgeny Voevodin - Nov. 6, 2012, 4:41 a.m.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
---
 tcg/tcg.h |    6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/tcg/tcg.h b/tcg/tcg.h
index c2ae873..6ffec1d 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -450,6 +450,12 @@  struct TCGContext {
     int goto_tb_issue_mask;
 #endif
 
+    uint16_t gen_opc_buf[OPC_BUF_SIZE];
+    TCGArg gen_opparam_buf[OPPARAM_BUF_SIZE];
+
+    uint16_t *gen_opc_ptr;
+    TCGArg *gen_opparam_ptr;
+
 #if defined(CONFIG_QEMU_LDST_OPTIMIZATION) && defined(CONFIG_SOFTMMU)
     /* labels info for qemu_ld/st IRs
        The labels help to generate TLB miss case codes at the end of TB */