diff mbox series

target/riscv: add scalar crypto related extenstion strings to isa_string

Message ID 20220426095204.24142-1-liweiwei@iscas.ac.cn (mailing list archive)
State New, archived
Headers show
Series target/riscv: add scalar crypto related extenstion strings to isa_string | expand

Commit Message

Weiwei Li April 26, 2022, 9:52 a.m. UTC
- add zbk* and zk* strings to isa_edata_arr

Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>
---
 target/riscv/cpu.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Jiatai He April 27, 2022, 4:22 p.m. UTC | #1
This patch could work successfully in qemu, "zk" could be found in linux device tree.

Tested-by: Jiatai He <jiatai2021@iscas.ac.cn>
Alistair Francis April 27, 2022, 11:39 p.m. UTC | #2
On Tue, Apr 26, 2022 at 8:14 PM Weiwei Li <liweiwei@iscas.ac.cn> wrote:
>
>  - add zbk* and zk* strings to isa_edata_arr
>
> Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
> Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  target/riscv/cpu.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index dff4606585..ccacdee215 100644
> --- a/target/riscv/cpu.c
> +++ b/target/riscv/cpu.c
> @@ -1005,7 +1005,20 @@ static void riscv_isa_string_ext(RISCVCPU *cpu, char **isa_str, int max_str_len)
>          ISA_EDATA_ENTRY(zba, ext_zba),
>          ISA_EDATA_ENTRY(zbb, ext_zbb),
>          ISA_EDATA_ENTRY(zbc, ext_zbc),
> +        ISA_EDATA_ENTRY(zbkb, ext_zbkb),
> +        ISA_EDATA_ENTRY(zbkc, ext_zbkc),
> +        ISA_EDATA_ENTRY(zbkx, ext_zbkx),
>          ISA_EDATA_ENTRY(zbs, ext_zbs),
> +        ISA_EDATA_ENTRY(zk, ext_zk),
> +        ISA_EDATA_ENTRY(zkn, ext_zkn),
> +        ISA_EDATA_ENTRY(zknd, ext_zknd),
> +        ISA_EDATA_ENTRY(zkne, ext_zkne),
> +        ISA_EDATA_ENTRY(zknh, ext_zknh),
> +        ISA_EDATA_ENTRY(zkr, ext_zkr),
> +        ISA_EDATA_ENTRY(zks, ext_zks),
> +        ISA_EDATA_ENTRY(zksed, ext_zksed),
> +        ISA_EDATA_ENTRY(zksh, ext_zksh),
> +        ISA_EDATA_ENTRY(zkt, ext_zkt),
>          ISA_EDATA_ENTRY(zve32f, ext_zve32f),
>          ISA_EDATA_ENTRY(zve64f, ext_zve64f),
>          ISA_EDATA_ENTRY(svinval, ext_svinval),
> --
> 2.17.1
>
>
Alistair Francis April 28, 2022, 2:11 a.m. UTC | #3
On Tue, Apr 26, 2022 at 8:14 PM Weiwei Li <liweiwei@iscas.ac.cn> wrote:
>
>  - add zbk* and zk* strings to isa_edata_arr
>
> Signed-off-by: Weiwei Li <liweiwei@iscas.ac.cn>
> Signed-off-by: Junqiang Wang <wangjunqiang@iscas.ac.cn>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  target/riscv/cpu.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index dff4606585..ccacdee215 100644
> --- a/target/riscv/cpu.c
> +++ b/target/riscv/cpu.c
> @@ -1005,7 +1005,20 @@ static void riscv_isa_string_ext(RISCVCPU *cpu, char **isa_str, int max_str_len)
>          ISA_EDATA_ENTRY(zba, ext_zba),
>          ISA_EDATA_ENTRY(zbb, ext_zbb),
>          ISA_EDATA_ENTRY(zbc, ext_zbc),
> +        ISA_EDATA_ENTRY(zbkb, ext_zbkb),
> +        ISA_EDATA_ENTRY(zbkc, ext_zbkc),
> +        ISA_EDATA_ENTRY(zbkx, ext_zbkx),
>          ISA_EDATA_ENTRY(zbs, ext_zbs),
> +        ISA_EDATA_ENTRY(zk, ext_zk),
> +        ISA_EDATA_ENTRY(zkn, ext_zkn),
> +        ISA_EDATA_ENTRY(zknd, ext_zknd),
> +        ISA_EDATA_ENTRY(zkne, ext_zkne),
> +        ISA_EDATA_ENTRY(zknh, ext_zknh),
> +        ISA_EDATA_ENTRY(zkr, ext_zkr),
> +        ISA_EDATA_ENTRY(zks, ext_zks),
> +        ISA_EDATA_ENTRY(zksed, ext_zksed),
> +        ISA_EDATA_ENTRY(zksh, ext_zksh),
> +        ISA_EDATA_ENTRY(zkt, ext_zkt),
>          ISA_EDATA_ENTRY(zve32f, ext_zve32f),
>          ISA_EDATA_ENTRY(zve64f, ext_zve64f),
>          ISA_EDATA_ENTRY(svinval, ext_svinval),
> --
> 2.17.1
>
>
diff mbox series

Patch

diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index dff4606585..ccacdee215 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -1005,7 +1005,20 @@  static void riscv_isa_string_ext(RISCVCPU *cpu, char **isa_str, int max_str_len)
         ISA_EDATA_ENTRY(zba, ext_zba),
         ISA_EDATA_ENTRY(zbb, ext_zbb),
         ISA_EDATA_ENTRY(zbc, ext_zbc),
+        ISA_EDATA_ENTRY(zbkb, ext_zbkb),
+        ISA_EDATA_ENTRY(zbkc, ext_zbkc),
+        ISA_EDATA_ENTRY(zbkx, ext_zbkx),
         ISA_EDATA_ENTRY(zbs, ext_zbs),
+        ISA_EDATA_ENTRY(zk, ext_zk),
+        ISA_EDATA_ENTRY(zkn, ext_zkn),
+        ISA_EDATA_ENTRY(zknd, ext_zknd),
+        ISA_EDATA_ENTRY(zkne, ext_zkne),
+        ISA_EDATA_ENTRY(zknh, ext_zknh),
+        ISA_EDATA_ENTRY(zkr, ext_zkr),
+        ISA_EDATA_ENTRY(zks, ext_zks),
+        ISA_EDATA_ENTRY(zksed, ext_zksed),
+        ISA_EDATA_ENTRY(zksh, ext_zksh),
+        ISA_EDATA_ENTRY(zkt, ext_zkt),
         ISA_EDATA_ENTRY(zve32f, ext_zve32f),
         ISA_EDATA_ENTRY(zve64f, ext_zve64f),
         ISA_EDATA_ENTRY(svinval, ext_svinval),