qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 35/43] tcg: Pass number of arguments to tcg_emit_op() / tc


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v5 35/43] tcg: Pass number of arguments to tcg_emit_op() / tcg_op_insert_*()
Date: Mon, 26 Dec 2022 13:14:11 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

On 25/12/22 00:57, Richard Henderson wrote:
From: Philippe Mathieu-Daudé <philmd@linaro.org>

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.henderson@linaro.org>
[PMD: Extracted from bigger patch]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221218211832.73312-2-philmd@linaro.org>
---
  include/tcg/tcg-op.h   |  2 +-
  include/tcg/tcg.h      |  8 +++++---
  accel/tcg/plugin-gen.c |  5 ++++-
  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(-)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]