Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions driver/others/detect_riscv64.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ uint64_t detect_riscv64_rvv100(void)
* 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"
"slt %0, x0, %0\n"
: "=r" (rvv10_supported)
:
:);
:"t0", "vtype");

return rvv10_supported;
}
Expand Down
Loading