qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v4 20a/27] tcg: Pass number of arguments to tcg_emit_op() / t


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v4 20a/27] tcg: Pass number of arguments to tcg_emit_op() / tcg_op_insert_*()
Date: Sun, 18 Dec 2022 22:39:10 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

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.henderson@linaro.org>

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

[PMD: Extracted from bigger patch]
Signed-off-by: Philippe Mathieu-Daudé <philmd@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

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