qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 33/54] tcg: Introduce arg_slot_stk_ofs


From: Richard Henderson
Subject: Re: [PATCH v2 33/54] tcg: Introduce arg_slot_stk_ofs
Date: Mon, 24 Apr 2023 05:36:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 4/23/23 19:55, Philippe Mathieu-Daudé wrote:
On 11/4/23 03:04, Richard Henderson wrote:
Unify all computation of argument stack offset in one function.
This requires that we adjust ref_slot to be in the same units,
by adding max_reg_slots during init_call_layout.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  tcg/tcg.c | 29 +++++++++++++++++------------
  1 file changed, 17 insertions(+), 12 deletions(-)


+static inline int arg_slot_stk_ofs(unsigned arg_slot)
+{
+    unsigned max = TCG_STATIC_CALL_ARGS_SIZE / sizeof(tcg_target_long);

static const?

No, compile-time constant folding and propagation.


r~



reply via email to

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