diff options
author | Thomas Huth <thuth@redhat.com> | 2022-12-05 13:58:52 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-12-15 15:02:34 +0100 |
commit | 3ef473e52e5c3232ff1a93787d00ef400a7db4fc (patch) | |
tree | 903caa7942f78d4d52e360be3315168389ca64ed /target/s390x/helper.h | |
parent | 5e275ca6fb32bcb4b56b29e6acfd3cf306c4a180 (diff) | |
download | qemu-3ef473e52e5c3232ff1a93787d00ef400a7db4fc.zip qemu-3ef473e52e5c3232ff1a93787d00ef400a7db4fc.tar.gz qemu-3ef473e52e5c3232ff1a93787d00ef400a7db4fc.tar.bz2 |
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>
Diffstat (limited to 'target/s390x/helper.h')
-rw-r--r-- | target/s390x/helper.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/s390x/helper.h b/target/s390x/helper.h index bf33d86..93923ca 100644 --- a/target/s390x/helper.h +++ b/target/s390x/helper.h @@ -353,8 +353,8 @@ DEF_HELPER_FLAGS_3(tprot, TCG_CALL_NO_WG, i32, env, i64, i64) DEF_HELPER_2(iske, i64, env, i64) DEF_HELPER_3(sske, void, env, i64, i64) DEF_HELPER_2(rrbe, i32, env, i64) -DEF_HELPER_4(mvcs, i32, env, i64, i64, i64) -DEF_HELPER_4(mvcp, i32, env, i64, i64, i64) +DEF_HELPER_5(mvcs, i32, env, i64, i64, i64, i64) +DEF_HELPER_5(mvcp, i32, env, i64, i64, i64, i64) DEF_HELPER_4(sigp, i32, env, i64, i32, i32) DEF_HELPER_FLAGS_2(sacf, TCG_CALL_NO_WG, void, env, i64) DEF_HELPER_FLAGS_4(idte, TCG_CALL_NO_RWG, void, env, i64, i64, i32) |