diff options
author | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-04-23 10:35:02 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2022-04-29 10:47:45 +1000 |
commit | 68d19b58f42d2493a3ff1c6dfe02a99f9d4ecfb5 (patch) | |
tree | 4428c9ae6748130796bc3f5eca25f82656fe3168 /target/riscv/helper.h | |
parent | c29da5a7fe6a5d3e1719ce9a831076df2eff52d5 (diff) | |
download | qemu-68d19b58f42d2493a3ff1c6dfe02a99f9d4ecfb5.zip qemu-68d19b58f42d2493a3ff1c6dfe02a99f9d4ecfb5.tar.gz qemu-68d19b58f42d2493a3ff1c6dfe02a99f9d4ecfb5.tar.bz2 |
target/riscv: rvk: add support for zknd/zkne extension in RV32
- add aes32esmi, aes32esi, aes32dsmi and aes32dsi instructions
Co-authored-by: Zewen Ye <lustrew@foxmail.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-7-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/riscv/helper.h b/target/riscv/helper.h index cfead7a..3c4e7e6 100644 --- a/target/riscv/helper.h +++ b/target/riscv/helper.h @@ -1112,3 +1112,9 @@ DEF_HELPER_5(divu_i128, tl, env, tl, tl, tl, tl) DEF_HELPER_5(divs_i128, tl, env, tl, tl, tl, tl) DEF_HELPER_5(remu_i128, tl, env, tl, tl, tl, tl) DEF_HELPER_5(rems_i128, tl, env, tl, tl, tl, tl) + +/* Crypto functions */ +DEF_HELPER_FLAGS_3(aes32esmi, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl) +DEF_HELPER_FLAGS_3(aes32esi, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl) +DEF_HELPER_FLAGS_3(aes32dsmi, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl) +DEF_HELPER_FLAGS_3(aes32dsi, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl) |