tcg: Initialize return value after exit_atomic
commit79b1af906245558c30e0a5faf26cb52b63f83cce
authorRichard Henderson <rth@twiddle.net>
Tue, 25 Apr 2017 10:38:52 +0000 (25 12:38 +0200)
committerRichard Henderson <rth@twiddle.net>
Wed, 26 Apr 2017 17:26:11 +0000 (26 19:26 +0200)
treeda5692f687e2caa9ccbebe2c176a635243f47f5e
parent51b9d495f2a99c65c9e524c8f6fe283ebfabae1d
tcg: Initialize return value after exit_atomic

Users of tcg_gen_atomic_cmpxchg and do_atomic_op rightfully utilize
the output.  Even though this code is dead, it gets translated, and
without the initialization we encounter a tcg_error.

Reported-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Tested-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg-op.c