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 |
This patch could work successfully in qemu, "zk" could be found in linux device tree.
Tested-by: Jiatai He <jiatai2021@iscas.ac.cn>
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 > >
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 --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),