OSDN Git Service

target/s390x: Fix emulation of C(G)HRL
authorNina Schoetterl-Glausch <nsg@linux.ibm.com>
Fri, 10 Mar 2023 11:41:56 +0000 (12:41 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 13 Mar 2023 08:23:42 +0000 (09:23 +0100)
commit54fce97cfcaf5463ee5f325bc1f1d4adc2772f38
treee14ff1ebd40d5ab3e5cf96cfd3e73a91985b43ca
parentd4f784c51b2bd27f4d4e6759dcef9d170d8723be
target/s390x: Fix emulation of C(G)HRL

The second operand of COMPARE HALFWORD RELATIVE LONG is a signed
halfword, it does not have the same size as the first operand.

Fixes: a7e836d5eb ("target-s390: Convert COMPARE, COMPARE LOGICAL")
Signed-off-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230310114157.3024170-2-nsg@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/tcg/insn-data.h.inc
target/s390x/tcg/translate.c