target/s390x: Fix LPSW
commit377dc84e2d58a734f9b9d299f218c4111133addb
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 15 Mar 2023 02:04:06 +0000 (15 03:04 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 20 Mar 2023 08:32:50 +0000 (20 09:32 +0100)
tree0f5eab5c588d3f5d32b5e39e727fc4befeec1753
parent9ba1caf51064a9ccd4fc69b66f8b2564a9fe526b
target/s390x: Fix LPSW

Currently LPSW does not invert the mask bit 12 and incorrectly copies
the BA bit into the address.

Fix by generating code similar to what s390_cpu_load_normal() does.

Reported-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Co-developed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230315020408.384766-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/tcg/translate.c