summaryrefslogtreecommitdiffstats
path: root/target/riscv/helper.h
diff options
context:
space:
mode:
authorWeiwei Li2022-04-23 04:35:07 +0200
committerAlistair Francis2022-04-29 02:47:45 +0200
commit0976083d1be23d72b9a4857f6d8c3d86b5f11efa (patch)
tree27b04aea908e02c9ef8ae53aeb18dbd4ad594afb /target/riscv/helper.h
parenttarget/riscv: rvk: add support for sha512 related instructions for RV64 in zk... (diff)
downloadqemu-0976083d1be23d72b9a4857f6d8c3d86b5f11efa.tar.gz
qemu-0976083d1be23d72b9a4857f6d8c3d86b5f11efa.tar.xz
qemu-0976083d1be23d72b9a4857f6d8c3d86b5f11efa.zip
target/riscv: rvk: add support for zksed/zksh extension
- add sm3p0, sm3p1, sm4ed and sm4ks instructions Co-authored-by: Ruibo Lu <luruibo2000@163.com> Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn> Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220423023510.30794-12-liweiwei@iscas.ac.cn> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/helper.h')
-rw-r--r--target/riscv/helper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/riscv/helper.h b/target/riscv/helper.h
index 56519fcc26..4ef3b2251d 100644
--- a/target/riscv/helper.h
+++ b/target/riscv/helper.h
@@ -1126,3 +1126,6 @@ DEF_HELPER_FLAGS_2(aes64dsm, TCG_CALL_NO_RWG_SE, tl, tl, tl)
DEF_HELPER_FLAGS_2(aes64ks2, TCG_CALL_NO_RWG_SE, tl, tl, tl)
DEF_HELPER_FLAGS_2(aes64ks1i, TCG_CALL_NO_RWG_SE, tl, tl, tl)
DEF_HELPER_FLAGS_1(aes64im, TCG_CALL_NO_RWG_SE, tl, tl)
+
+DEF_HELPER_FLAGS_3(sm4ed, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl)
+DEF_HELPER_FLAGS_3(sm4ks, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl)