Skip to content

Commit

Permalink
Fix qemu command
Browse files Browse the repository at this point in the history
  • Loading branch information
no1wudi authored Nov 24, 2023
1 parent e9ed213 commit c6bc084
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/wamr-test-suites/spec-test-script/runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,11 +1095,11 @@ def run_wasm_with_repl(wasm_tempfile, aot_tempfile, opts, r):
if opts.qemu_firmware == '':
raise Exception("QEMU firmware missing")

if opts.target == "thumbv7":
if opts.target.startswith("thumbv7"):
cmd = ["qemu-system-arm", "-semihosting", "-M", "sabrelite", "-m", "1024", "-smp", "4", "-nographic", "-kernel", opts.qemu_firmware]
elif opts.target == "riscv32_ilp32":
elif opts.target.startswith("riscv32"):
cmd = ["qemu-system-riscv32", "-semihosting", "-M", "virt,aclint=on", "-cpu", "rv32", "-smp", "8", "-nographic", "-bios", "none", "-kernel", opts.qemu_firmware]
elif opts.target == "riscv64_lp64":
elif opts.target.startswith("riscv64"):
cmd = ["qemu-system-riscv64", "-semihosting", "-M", "virt,aclint=on", "-cpu", "rv64", "-smp", "8", "-nographic", "-bios", "none", "-kernel", opts.qemu_firmware]

else:
Expand Down

0 comments on commit c6bc084

Please sign in to comment.