]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Make MC raise specification exception when class >= 16
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 24 Jul 2023 08:15:58 +0000 (10:15 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 31 Jul 2023 06:12:06 +0000 (09:12 +0300)
commitcdd6b6a764dc5a17ab03e9f2cba77f45ac200d5b
treea7b11eb3b205f53d2551600195629339db0ea737
parent0ef0b83104e0264122ea13eb46f1b9fe061d7361
target/s390x: Make MC raise specification exception when class >= 16

MC requires bit positions 8-11 (upper 4 bits of class) to be zeros,
otherwise it must raise a specification exception.

Cc: qemu-stable@nongnu.org
Fixes: 20d143e2cab8 ("s390x/tcg: Implement MONITOR CALL")
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230724082032.66864-6-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 9c028c057adce49304c6e4a51f6b426bd4f8f6b8)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: context edit in target/s390x/tcg/translate.c)
target/s390x/tcg/excp_helper.c
target/s390x/tcg/translate.c