diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-05-11 14:41:38 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-05-11 14:41:38 +0100 |
commit | 6d7cde809d915e14728eda0af1c0618eb5710a96 (patch) | |
tree | 819f8fbe3db445ef16e174bb7db0eec82f104586 /tcg/tcg.c | |
parent | 5cbc61110738accb16ff8ed1f08a32906d02790f (diff) | |
parent | abebf92597186be2bc48d487235da28b1127860f (diff) | |
download | qemu-6d7cde809d915e14728eda0af1c0618eb5710a96.tar.gz |
Merge remote-tracking branch 'remotes/rth/tags/tcg-next-pull-request' into staging
Queued TCG patches
# gpg: Signature made Wed 09 May 2018 16:46:21 BST
# gpg: using RSA key 64DF38E8AF7E215F
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
# Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A 05C0 64DF 38E8 AF7E 215F
* remotes/rth/tags/tcg-next-pull-request:
tcg: Limit the number of ops in a TB
tcg/i386: Fix dup_vec in non-AVX2 codepath
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -866,6 +866,7 @@ void tcg_func_start(TCGContext *s) /* No temps have been previously allocated for size or locality. */ memset(s->free_temps, 0, sizeof(s->free_temps)); + s->nb_ops = 0; s->nb_labels = 0; s->current_frame_offset = s->frame_start; @@ -1956,6 +1957,7 @@ void tcg_op_remove(TCGContext *s, TCGOp *op) { QTAILQ_REMOVE(&s->ops, op, link); QTAILQ_INSERT_TAIL(&s->free_ops, op, link); + s->nb_ops--; #ifdef CONFIG_PROFILER atomic_set(&s->prof.del_op_count, s->prof.del_op_count + 1); @@ -1975,6 +1977,7 @@ static TCGOp *tcg_op_alloc(TCGOpcode opc) } memset(op, 0, offsetof(TCGOp, link)); op->opc = opc; + s->nb_ops++; return op; } |