Closed apengaaa closed 6 months ago
sort.src https://github.com/oscomp/testsuits-for-oskernel/blob/pre-2024-riscv64/aarch64/x86_64/scripts/unixbench/sort.src It seems that the file was not copied during compilation.
Sorry, there was something wrong about my Chinese input method.
UnixBench testcases on the x86_64 platform require AVX support. Compilation parameters was specific the native, so they use the CPU machine of compile machine during compilation. If it executes vmovdqa, it will have an invalid opcode (exception 6).
https://www.felixcloutier.com/x86/movdqa:vmovdqa32:vmovdqa64
But the default CPU in QEMU doesn't support the AVX instruction set. Therefore, we need to specify a CPU with AVX support.
Here is an example.
After that, open AVX extension support and modify Cr4 at boot time.
unixbench运行问题修复
测例生成时带上了sort.src
,以修复运行时报错;
对于Qemu不支持AVX拓展指令的问题,则需要在编译参数中disable;
修改的代码请见:https://github.com/oscomp/testsuits-for-oskernel/commit/c3fa3c1c24fe83c2ff295d355f83fe2525018f62
在unixbench测试中部分测例可以成功运行并出现结果,但是在执行中间几条测例时出现找不到文件的问题:
sort.src
文件目前尚未找到出处