Browse Source

Merge 7fcad02dc2 into c31861ea62

pull/5432/merge
Mark Ryan GitHub 9 months ago
parent
commit
27304fb298
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      driver/others/detect_riscv64.c

+ 2
- 2
driver/others/detect_riscv64.c View File

@@ -63,12 +63,12 @@ uint64_t detect_riscv64_rvv100(void)
* RVV 1.0 and we return 0. * RVV 1.0 and we return 0.
*/ */


asm volatile("vsetvli x0, x0, e8, m1, ta, ma\n\t"
asm volatile("vsetvli t0, x0, e8, m1, ta, ma\n\t"
"csrr %0, vtype\n\t" "csrr %0, vtype\n\t"
"slt %0, x0, %0\n" "slt %0, x0, %0\n"
: "=r" (rvv10_supported) : "=r" (rvv10_supported)
: :
:);
:"t0", "vtype");


return rvv10_supported; return rvv10_supported;
} }


Loading…
Cancel
Save