summaryrefslogtreecommitdiffstats
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-12-11 09:17:45 -0800
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:32:25 -0600
commit6b8b5330fe1d83d26b05388cdbada83270f21fd5 (patch)
tree3d3027080f8b941009bf972c7d151632740efb7d /tcg
parent6e73317d5709765b57771345c37fc4da1618f502 (diff)
downloadhqemu-6b8b5330fe1d83d26b05388cdbada83270f21fd5.zip
hqemu-6b8b5330fe1d83d26b05388cdbada83270f21fd5.tar.gz
tcg: Remove lingering references to gen_opc_buf
Three in comments and one in code in the stub tcg_liveness_analysis. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 6a634cc..97c00a2 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -1775,8 +1775,7 @@ void tcg_liveness_analysis(TCGContext *s)
/* dummy liveness analysis */
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));
OpenPOWER on IntegriCloud