Use when embedded tests must run on a virtual MCU or SoC instead of the host or real hardware, for correct endianness, alignment and interrupts: qemu-system-arm, aarch64 and riscv32 machine and CPU flags, loading ELF binaries, semihosting exit codes, GDB and QMP, and CI.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Per invocation.html:
| Flag | Effect |
|---|---|
-M [type=]name[,prop=value,...] | Select emulated machine; -machine help lists all |
-cpu model | Select CPU model; -cpu help lists models for the target |
-smp [cpus=]n[,cores=...,...] | SMP topology - for multi-core test targets |
-m [size=]megs[,slots=n,maxmem=size] | Guest RAM; M / G suffixes |
-kernel file | Kernel image loaded directly into guest memory - for embedded tests, this is the test ELF |
-bios file | Custom BIOS / ROM image |
-append "<string>" | Kernel command-line arguments (Linux targets) |
-nographic | No GUI; serial to console |
-serial stdio | Redirect serial port to host stdin / stdout |
-monitor stdio / -monitor tcp:host:port | QEMU human monitor |
-qmp tcp:host:port[,server,nowait] | QMP machine protocol over TCP - JSON-RPC |