[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-9.0 v2 7/8] target/riscv: add RVA22S64 profile
From: |
Andrew Jones |
Subject: |
Re: [PATCH for-9.0 v2 7/8] target/riscv: add RVA22S64 profile |
Date: |
Mon, 27 Nov 2023 13:22:59 +0100 |
On Mon, Nov 27, 2023 at 08:37:51AM -0300, Daniel Henrique Barboza wrote:
> The RVA22S64 profile consists of the following:
>
> - all mandatory extensions of RVA22U64;
> - priv spec v1.12.0;
> - satp mode sv39;
> - Ssccptr, a cache related named feature that we're assuming always
> enable since we don't implement a cache;
> - Other named features already implemented: Sstvecd, Sstvala,
> Sscounterenw;
> - the new Svade named feature that was recently added.
>
> Most of the work is already done, so this patch is enough to implement
> the profile.
>
> After this patch, the 'rva22s64' user flag alone can be used with the
> rva64i CPU to boot Linux:
>
> -cpu rv64i,rva22s64=true
>
> This is the /proc/cpuinfo with this profile enabled:
>
> # cat /proc/cpuinfo
> processor : 0
> hart : 0
> isa :
> rv64imafdc_zicbom_zicbop_zicboz_zicntr_zicsr_zifencei_zihintpause_zihpm_zfhmin_zca_zcd_zba_zbb_zbs_zkt_svinval_svpbmt
> mmu : sv39
>
> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> ---
> target/riscv/cpu.c | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
- [PATCH for-9.0 v2 1/8] target/riscv: implement svade, (continued)
- [PATCH for-9.0 v2 1/8] target/riscv: implement svade, Daniel Henrique Barboza, 2023/11/27
- [PATCH for-9.0 v2 2/8] target/riscv: add priv ver restriction to profiles, Daniel Henrique Barboza, 2023/11/27
- [PATCH for-9.0 v2 3/8] target/riscv/cpu.c: finalize satp_mode earlier, Daniel Henrique Barboza, 2023/11/27
- [PATCH for-9.0 v2 4/8] target/riscv/cpu.c: add riscv_cpu_is_32bit(), Daniel Henrique Barboza, 2023/11/27
- [PATCH for-9.0 v2 5/8] target/riscv: add satp_mode profile support, Daniel Henrique Barboza, 2023/11/27
- [PATCH for-9.0 v2 6/8] target/riscv: add 'parent' in profile description, Daniel Henrique Barboza, 2023/11/27
- [PATCH for-9.0 v2 7/8] target/riscv: add RVA22S64 profile, Daniel Henrique Barboza, 2023/11/27
- Re: [PATCH for-9.0 v2 7/8] target/riscv: add RVA22S64 profile,
Andrew Jones <=
- [PATCH for-9.0 v2 8/8] target/riscv: add rva22s64 cpu, Daniel Henrique Barboza, 2023/11/27