title: How to create a QEMU ARM machine with custom peripherals and memory maps?
body: <p>I am writing a code for Cortex-M3 cpu and I am performing unit testing using <code>qemu-arm</code> binary. For now everything works just fine. But I am wondering If I am able to test whole system using <code>qemu-system-arm</code>? I mean, I want to write custom "machine" for qemu where I will define desired memory map and eventually some software imitation of desired peripherals, are there some examples of such module? I found very little amount of information about this. I have read some source code in <code>hw</code> directory in qemu source tree but it is almost all uncommented, and I am still not sure if I understand how to add new machine to the qemu and how append peripheral to the address space?</p>