target/riscv: Add Zvbc ISA extension support
This commit adds support for the Zvbc vector-crypto extension, which consists of the following instructions: * vclmulh.[vx,vv] * vclmul.[vx,vv] Translation functions are defined in `target/riscv/insn_trans/trans_rvvk.c.inc` and helpers are defined in `target/riscv/vcrypto_helper.c`. Co-authored-by:Nazar Kazakov <nazar.kazakov@codethink.co.uk> Co-authored-by:
Max Chou <max.chou@sifive.com> Signed-off-by:
Nazar Kazakov <nazar.kazakov@codethink.co.uk> Signed-off-by:
Lawrence Hunter <lawrence.hunter@codethink.co.uk> Signed-off-by:
Max Chou <max.chou@sifive.com> [max.chou@sifive.com: Exposed x-zvbc property] Message-ID: <20230711165917.2629866-5-max.chou@sifive.com> Signed-off-by:
Alistair Francis <alistair.francis@wdc.com>
Showing
- target/riscv/cpu.c 9 additions, 0 deletionstarget/riscv/cpu.c
- target/riscv/cpu_cfg.h 1 addition, 0 deletionstarget/riscv/cpu_cfg.h
- target/riscv/helper.h 6 additions, 0 deletionstarget/riscv/helper.h
- target/riscv/insn32.decode 6 additions, 0 deletionstarget/riscv/insn32.decode
- target/riscv/insn_trans/trans_rvvk.c.inc 62 additions, 0 deletionstarget/riscv/insn_trans/trans_rvvk.c.inc
- target/riscv/meson.build 2 additions, 1 deletiontarget/riscv/meson.build
- target/riscv/translate.c 1 addition, 0 deletionstarget/riscv/translate.c
- target/riscv/vcrypto_helper.c 59 additions, 0 deletionstarget/riscv/vcrypto_helper.c
Loading
Please register or sign in to comment