[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/14] target/riscv: Add cfg property for Zvkt extension
|
From: |
Alistair Francis |
|
Subject: |
Re: [PATCH 01/14] target/riscv: Add cfg property for Zvkt extension |
|
Date: |
Mon, 30 Oct 2023 14:47:21 +1000 |
On Thu, Oct 26, 2023 at 1:15 AM Max Chou <max.chou@sifive.com> wrote:
>
> Vector crypto spec defines the Zvkt extension that included all of the
> instructions of Zvbb & Zvbc extensions and some vector instructions.
>
> Signed-off-by: Max Chou <max.chou@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Alistair
> ---
> target/riscv/cpu_cfg.h | 1 +
> target/riscv/tcg/tcg-cpu.c | 5 +++++
> 2 files changed, 6 insertions(+)
>
> diff --git a/target/riscv/cpu_cfg.h b/target/riscv/cpu_cfg.h
> index e7ce977189c..d8d17dedeed 100644
> --- a/target/riscv/cpu_cfg.h
> +++ b/target/riscv/cpu_cfg.h
> @@ -94,6 +94,7 @@ struct RISCVCPUConfig {
> bool ext_zvknhb;
> bool ext_zvksed;
> bool ext_zvksh;
> + bool ext_zvkt;
> bool ext_zmmul;
> bool ext_zvfbfmin;
> bool ext_zvfbfwma;
> diff --git a/target/riscv/tcg/tcg-cpu.c b/target/riscv/tcg/tcg-cpu.c
> index c5ff03efce9..b9eaecb699c 100644
> --- a/target/riscv/tcg/tcg-cpu.c
> +++ b/target/riscv/tcg/tcg-cpu.c
> @@ -499,6 +499,11 @@ void riscv_cpu_validate_set_extensions(RISCVCPU *cpu,
> Error **errp)
> return;
> }
>
> + if (cpu->cfg.ext_zvkt) {
> + cpu_cfg_ext_auto_update(cpu, CPU_CFG_OFFSET(ext_zvbb), true);
> + cpu_cfg_ext_auto_update(cpu, CPU_CFG_OFFSET(ext_zvbc), true);
> + }
> +
> /*
> * In principle Zve*x would also suffice here, were they supported
> * in qemu
> --
> 2.34.1
>
>
- [PATCH 00/14] Update RISC-V vector crypto to ratified v1.0.0, Max Chou, 2023/10/25
- [PATCH 01/14] target/riscv: Add cfg property for Zvkt extension, Max Chou, 2023/10/25
- Re: [PATCH 01/14] target/riscv: Add cfg property for Zvkt extension,
Alistair Francis <=
- [PATCH 02/14] target/riscv: Expose Zvkt extension property, Max Chou, 2023/10/25
- [PATCH 03/14] target/riscv: Add cfg property for Zvkb extension, Max Chou, 2023/10/25
- [PATCH 04/14] target/riscv: Replace Zvbb checking by Zvkb, Max Chou, 2023/10/25
- [PATCH 06/14] target/riscv: Add cfg properties for Zvkn[c|g] extensions, Max Chou, 2023/10/25
- [PATCH 05/14] target/riscv: Expose Zvkb extension property, Max Chou, 2023/10/25
- [PATCH 08/14] target/riscv: Add cfg properties for Zvks[c|g] extensions, Max Chou, 2023/10/25
- [PATCH 09/14] target/riscv: Expose Zvks[c|g] extnesion properties, Max Chou, 2023/10/25
- [PATCH 10/14] target/riscv: Move vector crypto extensions to riscv_cpu_extensions, Max Chou, 2023/10/25
- [PATCH 07/14] target/riscv: Expose Zvkn[c|g] extnesion properties, Max Chou, 2023/10/25
- [PATCH 11/14] disas/riscv: Add rv_fmt_vd_vs2_uimm format, Max Chou, 2023/10/25