qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/5] target/s390x: Fix LAALG not updating cc_src


From: Richard Henderson
Subject: Re: [PATCH v2 3/5] target/s390x: Fix LAALG not updating cc_src
Date: Mon, 6 Nov 2023 08:14:12 -0800
User-agent: Mozilla Thunderbird

On 11/6/23 01:31, Ilya Leoshkevich wrote:
LAALG uses op_laa() and wout_addu64(). The latter expects cc_src to be
set, but the former does not do it. This can lead to assertion failures
if something sets cc_src to neither 0 nor 1 before.

Fix by introducing op_laa_addu64(), which sets cc_src, and using it for
LAALG.

Fixes: 4dba4d6fef61 ("target/s390x: Use atomic operations for LOAD AND OP")
Cc: qemu-stable@nongnu.org
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
---
  target/s390x/tcg/insn-data.h.inc |  2 +-
  target/s390x/tcg/translate.c     | 19 +++++++++++++++++--
  2 files changed, 18 insertions(+), 3 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]