accel/tcg/plugin-gen: fix the call signature for inline callbacks
authorAlex Bennée <alex.bennee@linaro.org>
Sat, 13 Feb 2021 13:03:11 +0000 (13:03 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 18 Feb 2021 08:17:32 +0000 (08:17 +0000)
commit0d6e6cb779ea1615b094f35bf3189ae6fd68cd95
tree1af7793a49a9fc68eabc6bf53bb539e071f0608d
parent24fa5d669d243699be3a179efc55041a291bb748
accel/tcg/plugin-gen: fix the call signature for inline callbacks

A recent change to the handling of constants in TCG changed the
pattern of ops emitted for a constant add. We no longer emit a mov and
the constant can be applied directly to the TCG_op_add arguments. This
was causing SEGVs when running the insn plugin with arg=inline. Fix
this by updating copy_add_i64 to do the right thing while also adding
a comment at the top of the append section as an aide memoir if
something like this happens again.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: Emilio G. Cota <cota@braap.org>
Message-Id: <20210213130325.14781-10-alex.bennee@linaro.org>
accel/tcg/plugin-gen.c