qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How to add new architecture?
@ 2012-08-25  0:46 Michael Eager
  2012-08-25 12:57 ` 陳韋任 (Wei-Ren Chen)
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Eager @ 2012-08-25  0:46 UTC (permalink / raw)
  To: qemu-devel

Is there a description of how to add a new processor architecture
to QEMU?  I looked at the Wiki and at the QEMU-Buch, but there
doesn't seem to be anything on topic.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

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

* Re: [Qemu-devel] How to add new architecture?
  2012-08-25  0:46 [Qemu-devel] How to add new architecture? Michael Eager
@ 2012-08-25 12:57 ` 陳韋任 (Wei-Ren Chen)
  2012-08-25 15:33   ` Michael Eager
  0 siblings, 1 reply; 7+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-08-25 12:57 UTC (permalink / raw)
  To: Michael Eager; +Cc: qemu-devel

On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote:
> Is there a description of how to add a new processor architecture
> to QEMU?  I looked at the Wiki and at the QEMU-Buch, but there
> doesn't seem to be anything on topic.

  Looking for target-xxx/ if you want to add a new guest, 
tcg/xxx/ if you want to add a new host.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

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

* Re: [Qemu-devel] How to add new architecture?
  2012-08-25 12:57 ` 陳韋任 (Wei-Ren Chen)
@ 2012-08-25 15:33   ` Michael Eager
  2012-08-25 15:38     ` 陳韋任 (Wei-Ren Chen)
  2012-08-25 15:43     ` 陳韋任 (Wei-Ren Chen)
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Eager @ 2012-08-25 15:33 UTC (permalink / raw)
  To: "陳韋任 (Wei-Ren Chen)"; +Cc: qemu-devel

On 08/25/2012 05:57 AM, 陳韋任 (Wei-Ren Chen) wrote:
> On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote:
>> Is there a description of how to add a new processor architecture
>> to QEMU?  I looked at the Wiki and at the QEMU-Buch, but there
>> doesn't seem to be anything on topic.
>
>    Looking for target-xxx/ if you want to add a new guest,
> tcg/xxx/ if you want to add a new host.

I want to add a new guest architecture.

Is there any description of what the configuration options mean?

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

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

* Re: [Qemu-devel] How to add new architecture?
  2012-08-25 15:33   ` Michael Eager
@ 2012-08-25 15:38     ` 陳韋任 (Wei-Ren Chen)
  2012-08-25 15:50       ` Michael Eager
  2012-08-25 15:43     ` 陳韋任 (Wei-Ren Chen)
  1 sibling, 1 reply; 7+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-08-25 15:38 UTC (permalink / raw)
  To: Michael Eager
  Cc: qemu-devel, "陳韋任 (Wei-Ren Chen)"

> I want to add a new guest architecture.
> 
> Is there any description of what the configuration options mean?

  You mean the options list in `../${QEMU_SRC}/configure --help`?
Not sure why you need to care about that.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

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

* Re: [Qemu-devel] How to add new architecture?
  2012-08-25 15:33   ` Michael Eager
  2012-08-25 15:38     ` 陳韋任 (Wei-Ren Chen)
@ 2012-08-25 15:43     ` 陳韋任 (Wei-Ren Chen)
  1 sibling, 0 replies; 7+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-08-25 15:43 UTC (permalink / raw)
  To: Michael Eager
  Cc: qemu-devel, "陳韋任 (Wei-Ren Chen)"

On Sat, Aug 25, 2012 at 08:33:41AM -0700, Michael Eager wrote:
> On 08/25/2012 05:57 AM, 陳韋任 (Wei-Ren Chen) wrote:
> > On Fri, Aug 24, 2012 at 05:46:43PM -0700, Michael Eager wrote:
> >> Is there a description of how to add a new processor architecture
> >> to QEMU?  I looked at the Wiki and at the QEMU-Buch, but there
> >> doesn't seem to be anything on topic.
> >
> >    Looking for target-xxx/ if you want to add a new guest,
> > tcg/xxx/ if you want to add a new host.
> 
> I want to add a new guest architecture.

  I suggest you take a look on openrisc patchset [1], it's a relative
new added guest support. 

Regards,
chenwj

[1] https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02567.html

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

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

* Re: [Qemu-devel] How to add new architecture?
  2012-08-25 15:38     ` 陳韋任 (Wei-Ren Chen)
@ 2012-08-25 15:50       ` Michael Eager
  2012-08-25 16:02         ` 陳韋任 (Wei-Ren Chen)
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Eager @ 2012-08-25 15:50 UTC (permalink / raw)
  To: "陳韋任 (Wei-Ren Chen)"; +Cc: qemu-devel

On 08/25/2012 08:38 AM, 陳韋任 (Wei-Ren Chen) wrote:
>> I want to add a new guest architecture.
>>
>> Is there any description of what the configuration options mean?
>
>    You mean the options list in `../${QEMU_SRC}/configure --help`?
> Not sure why you need to care about that.

In $QEMU_SRC/configure, architectures have these configuration options
(and several more):
     target_nptl="yes"
     target_phys_bits=32
     target_libs_softmmu="$fdt_libs"

In the target-*/cpu.h, there are defines like:

     #define TARGET_LONG_BITS 32
     #define TARGET_HAS_ICE 1
     #define TARGET_PAGE_BITS 12
     #define TARGET_PAGE_BITS 10
     #define TARGET_PHYS_ADDR_SPACE_BITS 40
     #define TARGET_VIRT_ADDR_SPACE_BITS 32

There are also required specification like CPUState or CPUArchState.

Is there any description of these configuration options?

 >    I suggest you take a look on openrisc patchset [1], it's a relative
 > new added guest support.
 >
 > [1] https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02567.html

Thanks.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

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

* Re: [Qemu-devel] How to add new architecture?
  2012-08-25 15:50       ` Michael Eager
@ 2012-08-25 16:02         ` 陳韋任 (Wei-Ren Chen)
  0 siblings, 0 replies; 7+ messages in thread
From: 陳韋任 (Wei-Ren Chen) @ 2012-08-25 16:02 UTC (permalink / raw)
  To: Michael Eager
  Cc: qemu-devel, "陳韋任 (Wei-Ren Chen)"

On Sat, Aug 25, 2012 at 08:50:29AM -0700, Michael Eager wrote:
> On 08/25/2012 08:38 AM, 陳韋任 (Wei-Ren Chen) wrote:
> >> I want to add a new guest architecture.
> >>
> >> Is there any description of what the configuration options mean?
> >
> >    You mean the options list in `../${QEMU_SRC}/configure --help`?
> > Not sure why you need to care about that.
> 
> In $QEMU_SRC/configure, architectures have these configuration options
> (and several more):
>      target_nptl="yes"
>      target_phys_bits=32
>      target_libs_softmmu="$fdt_libs"
> 
> In the target-*/cpu.h, there are defines like:
> 
>      #define TARGET_LONG_BITS 32
>      #define TARGET_HAS_ICE 1
>      #define TARGET_PAGE_BITS 12
>      #define TARGET_PAGE_BITS 10
>      #define TARGET_PHYS_ADDR_SPACE_BITS 40
>      #define TARGET_VIRT_ADDR_SPACE_BITS 32
> 
> There are also required specification like CPUState or CPUArchState.
> 
> Is there any description of these configuration options?

  Well, you need to read the source code. :) Basically, TARGET_XXX
describes guest characteristics. QEMU now is refactoring its code base,
for example, perfer to use CPUArchState rather than CPUState. OpenRISC
port is a good example/template you can use.

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

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

end of thread, other threads:[~2012-08-25 16:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-25  0:46 [Qemu-devel] How to add new architecture? Michael Eager
2012-08-25 12:57 ` 陳韋任 (Wei-Ren Chen)
2012-08-25 15:33   ` Michael Eager
2012-08-25 15:38     ` 陳韋任 (Wei-Ren Chen)
2012-08-25 15:50       ` Michael Eager
2012-08-25 16:02         ` 陳韋任 (Wei-Ren Chen)
2012-08-25 15:43     ` 陳韋任 (Wei-Ren Chen)

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).