tcg: Introduce arg_slot_stk_ofs
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 9 Apr 2023 02:05:10 +0000 (19:05 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 5 May 2023 16:21:03 +0000 (17:21 +0100)
commitd78e4a4f7b3c147af2c93b0b7b60b715ec7324d3
treeb8fd6c1f36f2236c2dd43ea3c836a99547bb2bf5
parent338b61e9e96445d1dc386d812a81de3309ecb66c
tcg: Introduce arg_slot_stk_ofs

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.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg.c