QEMU is only available for STM32 targets
The same QEMU binary found in the SDK can be used to build and develop the firmware. If you're using an Apple Silicon Mac, you might find it easier to build QEMU from source.
The steps here are similar that of real hardware:
./waf configure --board=$BOARD --qemu
./waf build
./waf qemu_image_spi
where $BOARD
is any STM32 based board.
You can launch QEMU with the built image using:
./waf qemu
You can launch a console using:
./waf qemu_console
You can debug with GDB using:
./waf qemu_gdb