target/s390x: The MVCP and MVCS instructions are not privileged
authorThomas Huth <thuth@redhat.com>
Mon, 5 Dec 2022 12:58:52 +0000 (13:58 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 15 Dec 2022 14:02:34 +0000 (15:02 +0100)
commit3ef473e52e5c3232ff1a93787d00ef400a7db4fc
tree903caa7942f78d4d52e360be3315168389ca64ed
parent5e275ca6fb32bcb4b56b29e6acfd3cf306c4a180
target/s390x: The MVCP and MVCS instructions are not privileged

The "MOVE TO PRIMARY/SECONDARY" instructions can also be called
from problem state. We just should properly check whether the
secondary-space access key is valid here, too, and inject a
privileged program exception if it is invalid.

Message-Id: <20221205125852.81848-1-thuth@redhat.com>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/helper.h
target/s390x/tcg/insn-data.h.inc
target/s390x/tcg/mem_helper.c
target/s390x/tcg/translate.c