Closed xingmingjie closed 3 years ago
目前使用qemu官方仓库构建的版本,尚不支持最新RVV指令。
对于如下代码片段:
riscv64-unknown-elf-objdump -d a.out >& a.dump 0000000000010250 <loop>: 10250: 0c3672d7 vsetvli t0,a2,e8,m8,ta,ma,d1 10254: 02058007 vle8.v v0,(a1) 10258: 005585b3 add a1,a1,t0 1025c: 40560633 sub a2,a2,t0 10260: 02068027 vse8.v v0,(a3) 10264: 005686b3 add a3,a3,t0 10268: fe0614e3 bnez a2,10250 <loop> 1026c: 00008067 ret
运行qemu,会报Illegal instruction错误:
qemu-riscv64 test-memcpy Illegal instruction (core dumped)
已经开始。估计3个观察点之后可以看到一些结果。
直接按照 v1.0 的标准来进行。
RVV是实验选项,默认是不支持,需要加上-cpu rv64,x-v=true
are we done yet?
目前支持的是0.10版本,这个问题当时可能是执行命令少了选项。
OK,关掉了👌
目前使用qemu官方仓库构建的版本,尚不支持最新RVV指令。
对于如下代码片段:
运行qemu,会报Illegal instruction错误: