How to add a new machine support in qemu?
I'm going to add a new mips machine with a mips core. But I can not find a proper document for me to do so. Can anyone give a link? Or any suggestion for this?
Thanks in advance.
Michael,
You might want to read these two threads:
"RE: [Qemu-devel] Support for new target emulator":
http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg02131.html
"[Qemu-devel] [PATCH 00/12] S/390 support"
http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg01857.html
Quoted 6 lines · Scott Tsai
Michael,
You might want to read these two threads:
"RE: [Qemu-devel] Support for new target emulator":
http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg02131.html
"[Qemu-devel] [PATCH 00/12] S/390 support"
http://lists.gnu.org/archive/html/qemu-devel/2009-10/msg01857.html
On second though, my previous advise is only suited for people adding new instruction set architectures in QEMU,
if you're MIPS core doesn't add new instructions then take I'd look at:hw/mips_mipssim.chw/mips_jazz.c
and add the missing platform peripheral emulation?
Thanks for your reply. I'm reading hw/mips_r4k.c. But I found I should dive into the source code.
I'm looking for some big picture level document for add a new machine using a supported core.
It seems qemu consists 3 parts of code
1. The core dynamic translate engineer to support several archs, just like mips, arm, ppc....
2. The peripheral emulation pool.
3. The platform relative code, just like hw/mips_jazz.c ..., it just connect the arch and the peripherals according to the real board.
I think my work should be the 2 and 3. And I'd like to find some documents for them.
Quoted 4 lines · Michael Qiu
Thanks for your reply. I'm reading
hw/mips_r4k.c. But I found I should dive into the source code.
I'm looking for some big picture level document for add a new machine using a supported core.
Quoted 9 lines
It seems qemu consists 3 parts of code
1. The core dynamic translate engineer to support several archs, just like mips, arm, ppc....
2. The peripheral emulation pool.
3. The platform relative code, just likehw/mips_jazz.c..., it just connect the arch and the peripherals according to the real board. I think my work should be the 2 and 3. And I'd like to find some documents for them.
You are correct, 2 and 3 is needed. There are no documents (at least I don't know any).
Take mips_jazz.c or mips_malta.c, make a copy of one of them and fit it to your needs (don't forget to extend Makefiles).
Regards
Stefan