#!/usr/bin/env bash set -x KERNEL=$1 shift cargo build qemu-system-riscv64 \ -nographic \ -machine virt \ -bios none \ -m 3G \ -kernel "$KERNEL" # -d trace:exec_tb \ # -smp 3 \ # -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 \