#!/bin/sh : "${DISK:=riscv64-qemu.img}" qemu-system-riscv64 -M virt -accel tcg,thread=multi \ -cpu rv64 -smp cores=4 \ -bios fw_payload.elf \ -m 2048M \ -drive file=${DISK},id=hd0 -device virtio-blk,drive=hd0 \ -rtc base=utc,clock=host \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng,rng=rng0 \ -netdev user,id=n1 -device virtio-net-pci,netdev=n1 \ -device qemu-xhci -device usb-kbd -device usb-tablet \ -device virtio-gpu-gl-pci -display sdl,gl=on \ -serial stdio #-vga qxl -device virtio-gpu