target/riscv: rvv: Remove the dependency of Zvfbfmin to Zfbfmin
PATCH 1/1 target/riscv: rvv: Remove the dependency of Zvfbfmin to Zfbfmin
According to the Zvfbfmin definition in the RISC-V BF16 extensions spec, the Zvfbfmin extension only requires either the V extension or the Zve32f extension.
Signed-off-by Max Chou <[email protected]>
--- target/riscv/tcg/tcg-cpu.c | 5 ----- 1 file changed, 5 deletions(-)
target/riscv/tcg/tcg-cpu.c +0 -5
@@ -530,11 +530,6 @@ void riscv_cpu_validate_set_extensions(RISCVCPU *cpu, Error **errp)return ; } -if (cpu->cfg.ext_zvfbfmin && !cpu->cfg.ext_zfbfmin) { -error_setg (errp,"Zvfbfmin extension depends on Zfbfmin extension" ); -return ; - } -if (cpu->cfg.ext_zvfbfmin && !cpu->cfg.ext_zve32f) {error_setg (errp,"Zvfbfmin extension depends on Zve32f extension" );return ;
Signature · 1 line
2.34.1
Quoted 4 lines · Max Chou
According to the Zvfbfmin definition in the RISC-V BF16 extensions spec, the Zvfbfmin extension only requires either the V extension or the Zve32f extension.
Yeah, the dependency has been removed
Quoted 2 lines
Signed-off-by Max Chou <[email protected]>
Reviewed-by Alistair Francis <[email protected]>
Alistair
Quoted 24 lines
--- target/riscv/tcg/tcg-cpu.c | 5 ----- 1 file changed, 5 deletions(-)target/riscv/tcg/tcg-cpu.c +0
-6@@ -530,11 +530,6 @@ void riscv_cpu_validate_set_extensions(RISCVCPU *cpu, Error **errp)return ; } -if (cpu->cfg.ext_zvfbfmin && !cpu->cfg.ext_zfbfmin) { -error_setg (errp,"Zvfbfmin extension depends on Zfbfmin extension" ); -return ; - } -if (cpu->cfg.ext_zvfbfmin && !cpu->cfg.ext_zve32f) {error_setg (errp,"Zvfbfmin extension depends on Zve32f extension" );return ; --2.34.1
Alistair Francis
AppliedQuoted 6 lines · Max Chou
According to the Zvfbfmin definition in the RISC-V BF16 extensions spec, the Zvfbfmin extension only requires either the V extension or the Zve32f extension.
Signed-off-by Max Chou <[email protected]>
Thanks!
Applied to riscv-to-apply.next
Alistair
Quoted 24 lines
--- target/riscv/tcg/tcg-cpu.c | 5 ----- 1 file changed, 5 deletions(-)target/riscv/tcg/tcg-cpu.c +0
-6@@ -530,11 +530,6 @@ void riscv_cpu_validate_set_extensions(RISCVCPU *cpu, Error **errp)return ; } -if (cpu->cfg.ext_zvfbfmin && !cpu->cfg.ext_zfbfmin) { -error_setg (errp,"Zvfbfmin extension depends on Zfbfmin extension" ); -return ; - } -if (cpu->cfg.ext_zvfbfmin && !cpu->cfg.ext_zve32f) {error_setg (errp,"Zvfbfmin extension depends on Zve32f extension" );return ; --2.34.1