qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to add a new machine support in qemu?
@ 2009-11-06  3:46 Michael Qiu
  2009-11-06  4:43 ` Scott Tsai
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Qiu @ 2009-11-06  3:46 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] How to add a new machine support in qemu?
  2009-11-06  3:46 [Qemu-devel] How to add a new machine support in qemu? Michael Qiu
@ 2009-11-06  4:43 ` Scott Tsai
  2009-11-06  4:48   ` Scott Tsai
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Tsai @ 2009-11-06  4:43 UTC (permalink / raw)
  To: Michael Qiu; +Cc: qemu-devel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] How to add a new machine support in qemu?
  2009-11-06  4:43 ` Scott Tsai
@ 2009-11-06  4:48   ` Scott Tsai
  2009-11-06  8:18     ` Michael Qiu
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Tsai @ 2009-11-06  4:48 UTC (permalink / raw)
  To: Michael Qiu; +Cc: qemu-devel

On Fri, Nov 6, 2009 at 12:43 PM, Scott Tsai <scottt.tw@gmail.com> wrote:
> 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.c
hw/mips_jazz.c
and add the missing platform peripheral emulation?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] How to add a new machine support in qemu?
  2009-11-06  4:48   ` Scott Tsai
@ 2009-11-06  8:18     ` Michael Qiu
  2009-11-06 11:03       ` Stefan Weil
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Qiu @ 2009-11-06  8:18 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 579 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 620 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] How to add a new machine support in qemu?
  2009-11-06  8:18     ` Michael Qiu
@ 2009-11-06 11:03       ` Stefan Weil
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Weil @ 2009-11-06 11:03 UTC (permalink / raw)
  To: Michael Qiu; +Cc: qemu-devel

Michael Qiu schrieb:
> 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.
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-06 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06  3:46 [Qemu-devel] How to add a new machine support in qemu? Michael Qiu
2009-11-06  4:43 ` Scott Tsai
2009-11-06  4:48   ` Scott Tsai
2009-11-06  8:18     ` Michael Qiu
2009-11-06 11:03       ` Stefan Weil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).