Search
[RISCV/Chisel]Error: unrecognized opcode vsetvli
- M.R
- Feb 3, 2024
- 1 min read
Situation
I'm Implementing RISCV vector instructions with chisel.
When adding the vsetvli instruction, the above compilation error occurs.
Cause and solution
The argument at compile time was incorrect.
Incorrect:
riscv64-unknown-elf-gcc -march=rv32i
Correct:
riscv64-unknown-elf-gcc -march=rv32iv
It seems that the ones with v correspond to vector instructions.
For details, see the page below
Comments