Enable spectest on riscv64 (#2843)

Fix relocation issues on riscv and update test scripts and CI to enable
test spec cases on riscv QEMU.
This commit is contained in:
Huang Qi
2023-12-04 14:22:47 +08:00
committed by GitHub
parent 157c289d07
commit 453a29a9d4
3 changed files with 89 additions and 55 deletions

View File

@ -59,11 +59,11 @@ jobs:
# target: "riscv32_ilp32d",
# use_fpu: true
# },
# {
# config: "boards/risc-v/qemu-rv/rv-virt/configs/nsh64",
# target: "riscv64",
# use_fpu: false
# },
{
config: "boards/risc-v/qemu-rv/rv-virt/configs/nsh64",
target: "riscv64",
use_fpu: false
},
]
wamr_test_option: [
@ -85,6 +85,11 @@ jobs:
},
]
exclude:
# XIP is not fully supported yet on RISCV64, some relocations can not be resolved
- target_config: { config: "boards/risc-v/qemu-rv/rv-virt/configs/nsh64" }
wamr_test_option: { mode: "-t aot -X" }
steps:
- name: Install Utilities
run: |
@ -160,7 +165,7 @@ jobs:
find nuttx/boards -name defconfig | xargs sed -i '$a\${{ matrix.wamr_test_option.option }}'
- name: Disable FPU for NuttX
if: matrix.target_config.use_fpu== false
if: matrix.target_config.use_fpu == false
run: |
find nuttx/boards -name defconfig | xargs sed -i '$a\# CONFIG_ARCH_FPU is not set\n'