]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tcg: Remove lingering references to gen_opc_buf
authorRichard Henderson <rth@twiddle.net>
Fri, 11 Dec 2015 17:17:45 +0000 (09:17 -0800)
committerRichard Henderson <rth@twiddle.net>
Mon, 8 Feb 2016 23:19:32 +0000 (10:19 +1100)
Three in comments and one in code in the stub tcg_liveness_analysis.

Signed-off-by: Richard Henderson <rth@twiddle.net>
target-arm/translate.c
target-i386/translate.c
target-unicore32/translate.c
tcg/tcg.c

index 3ec758ad6f087ba6a44797e63e61f313c1982b9d..bac2e6174fd61b26122aea907498da84bc907ead 100644 (file)
@@ -11209,8 +11209,7 @@ static bool insn_crosses_page(CPUARMState *env, DisasContext *s)
     return false;
 }
 
-/* generate intermediate code in gen_opc_buf and gen_opparam_buf for
-   basic block 'tb'.  */
+/* generate intermediate code for basic block 'tb'.  */
 void gen_intermediate_code(CPUARMState *env, TranslationBlock *tb)
 {
     ARMCPU *cpu = arm_env_get_cpu(env);
index 73a45c872e9afda5be9104dee8c573c3e6d5a4e6..2dde47675e9c78b52e42f5e5d7c5d53bf5541654 100644 (file)
@@ -7878,8 +7878,7 @@ void tcg_x86_init(void)
     helper_lock_init();
 }
 
-/* generate intermediate code in gen_opc_buf and gen_opparam_buf for
-   basic block 'tb'.  */
+/* generate intermediate code for basic block 'tb'.  */
 void gen_intermediate_code(CPUX86State *env, TranslationBlock *tb)
 {
     X86CPU *cpu = x86_env_get_cpu(env);
index 7dbfe3bd03ea52b4b60480dd573aff7d49012103..ec2cc13eb692e96e1b78dc4e8e113dd7a735a885 100644 (file)
@@ -1860,8 +1860,7 @@ static void disas_uc32_insn(CPUUniCore32State *env, DisasContext *s)
     }
 }
 
-/* generate intermediate code in gen_opc_buf and gen_opparam_buf for
-   basic block 'tb'.  */
+/* generate intermediate code for basic block 'tb'.  */
 void gen_intermediate_code(CPUUniCore32State *env, TranslationBlock *tb)
 {
     UniCore32CPU *cpu = uc32_env_get_cpu(env);
index cd62d81c2a577ca28185a456d66b1027defd353b..e6e844ca57599426573c5dfe7956ffb3e28f5cbc 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1576,8 +1576,7 @@ static void tcg_liveness_analysis(TCGContext *s)
 /* dummy liveness analysis */
 static void tcg_liveness_analysis(TCGContext *s)
 {
-    int nb_ops;
-    nb_ops = s->gen_opc_ptr - s->gen_opc_buf;
+    int nb_ops = s->gen_next_op_idx;
 
     s->op_dead_args = tcg_malloc(nb_ops * sizeof(uint16_t));
     memset(s->op_dead_args, 0, nb_ops * sizeof(uint16_t));