let's say I have a file full of ARM processor instructions which are already represented as bytes. What is the best way to execute them directly with qemu-arm?
Thanks!
let's say I have a file full of ARM processor instructions which are already represented as bytes. What is the best way to execute them directly with qemu-arm?
Thanks!
If your data is a bootable image, qemu can be started directly with the image file:
qemu-system-arm -hda data.img
where data.img
is the name of your binary file.
Otherwise, as Peter Cordes wrote, the easiest way would be to create an ELF executable (see How to run a bare metal ELF file on QEMU?) and start it via
qemu-system-arm -kernel data.elf
where data.elf
is the name of the created ELF executable.
(too long for a comment, so I posted it as an answer)