]> xenbits.xensource.com Git - qemu-xen.git/commit
tcg: Fix info_in_idx increment in layout_arg_by_ref
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jul 2023 10:17:44 +0000 (10:17 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 31 Jul 2023 05:52:38 +0000 (08:52 +0300)
commitfa72d8bcf489766c18c37e48eb96752f056568ad
treeef30655a822cc42476450ae9a65f04da58f7dda3
parent7b336dcd06d727c2ec98ec5dcf95f38c83ac4b9f
tcg: Fix info_in_idx increment in layout_arg_by_ref

Off by one error, failing to take into account that layout_arg_1
already incremented info_in_idx for the first piece.  We only
need care for the n-1 TCG_CALL_ARG_BY_REF_N pieces here.

Cc: qemu-stable@nongnu.org
Fixes: 313bdea84d2 ("tcg: Add TCG_CALL_{RET,ARG}_BY_REF")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1751
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit e18ed26ce785f74a17e6f3a095647e08ba6fc669)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/tcg.c