target/riscv: rvv: Remove the dependency of Zvfbfmin to Zfbfmin
authorMax Chou <max.chou@sifive.com>
Thu, 21 Mar 2024 17:09:27 +0000 (01:09 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 22 Mar 2024 05:31:09 +0000 (15:31 +1000)
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 <max.chou@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240321170929.1162507-1-max.chou@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/tcg/tcg-cpu.c

index 63192ef54f3de92d00c2d217a62b577718b30f4b..b5b95e052d2df62f47608526057979cbf8d5198b 100644 (file)
@@ -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;