target/ppc: Fix TCG leak with the evmwsmiaa instruction
authorMatthieu Bucchianeri <matthieu.bucchianeri@leostella.com>
Mon, 27 Jul 2020 17:21:14 +0000 (10:21 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Aug 2020 03:16:27 +0000 (13:16 +1000)
commit6d592c557e2d7131585ea7f6a3f214aba71e8776
tree1621e39b77dd7a9831aec35f62cc7f9d53ff8576
parentd0ed6a69d399ae193959225cdeaa9382746c91cc
target/ppc: Fix TCG leak with the evmwsmiaa instruction

Fix double-call to tcg_temp_new_i64(), where a temp is allocated both at
declaration time and further down the implementation of gen_evmwsmiaa().

Note that gen_evmwsmia() and gen_evmwsmiaa() are still not implemented
correctly, as they invoke gen_evmwsmi() which may return early, but the
return is not propagated. This will be fixed in my patch for bug #1888918.

Signed-off-by: Matthieu Bucchianeri <matthieu.bucchianeri@leostella.com>
Message-Id: <20200727172114.31415-1-matthieu.bucchianeri@leostella.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/translate/spe-impl.inc.c