On 18/12/22 22:18, Philippe Mathieu-Daudé wrote:
In order to have variable size allocated TCGOp, pass the number
of arguments we use (and would allocate) up to tcg_op_alloc().

This alters tcg_emit_op(), tcg_op_insert_before() and
tcg_op_insert_after() prototypes.

In tcg_op_alloc() ensure the number of arguments is in range.

Signed-off-by: Richard Henderson <richard.hender...@linaro.org>

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>

[PMD: Extracted from bigger patch]
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
---
  accel/tcg/plugin-gen.c |  5 ++++-
  include/tcg/tcg-op.h   |  2 +-
  include/tcg/tcg.h      |  8 +++++---
  tcg/optimize.c         |  4 ++--
  tcg/tcg-op-vec.c       |  8 ++++----
  tcg/tcg-op.c           | 12 ++++++------
  tcg/tcg.c              | 30 +++++++++++++++++-------------
  7 files changed, 39 insertions(+), 30 deletions(-)


Reply via email to