summaryrefslogtreecommitdiffstats
path: root/target/s390x/helper.h
diff options
context:
space:
mode:
authorThomas Huth2017-05-18 19:26:40 +0200
committerRichard Henderson2017-06-06 23:34:31 +0200
commitf79f1ca4a20d4070179903bbaafc13f5f90b7873 (patch)
tree5921a73bc3333cde97f964bda0daab4999789405 /target/s390x/helper.h
parentMerge remote-tracking branch 'remotes/xtensa/tags/20170606-xtensa' into staging (diff)
downloadqemu-f79f1ca4a20d4070179903bbaafc13f5f90b7873.tar.gz
qemu-f79f1ca4a20d4070179903bbaafc13f5f90b7873.tar.xz
qemu-f79f1ca4a20d4070179903bbaafc13f5f90b7873.zip
target/s390x: Add support for the TEST BLOCK instruction
TEST BLOCK was likely once used to execute basic memory tests, but nowadays it's just a (slow) way to clear a page. Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1495128400-23759-1-git-send-email-thuth@redhat.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target/s390x/helper.h')
-rw-r--r--target/s390x/helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/s390x/helper.h b/target/s390x/helper.h
index 0b70770e4e..1fae19126e 100644
--- a/target/s390x/helper.h
+++ b/target/s390x/helper.h
@@ -102,6 +102,7 @@ DEF_HELPER_FLAGS_4(lctl, TCG_CALL_NO_WG, void, env, i32, i64, i32)
DEF_HELPER_FLAGS_4(lctlg, TCG_CALL_NO_WG, void, env, i32, i64, i32)
DEF_HELPER_FLAGS_4(stctl, TCG_CALL_NO_WG, void, env, i32, i64, i32)
DEF_HELPER_FLAGS_4(stctg, TCG_CALL_NO_WG, void, env, i32, i64, i32)
+DEF_HELPER_FLAGS_2(testblock, TCG_CALL_NO_WG, i32, env, i64)
DEF_HELPER_FLAGS_2(tprot, TCG_CALL_NO_RWG, i32, i64, i64)
DEF_HELPER_FLAGS_2(iske, TCG_CALL_NO_RWG_SE, i64, env, i64)
DEF_HELPER_FLAGS_3(sske, TCG_CALL_NO_RWG, void, env, i64, i64)