From: "陳韋任 (Wei-Ren Chen)" <chenwj@iis.sinica.edu.tw>
To: Michael Eager <eager@eagerm.com>
Cc: qemu-devel@nongnu.org,
"\"陳韋任 (Wei-Ren Chen)\"" <chenwj@iis.sinica.edu.tw>
Subject: Re: [Qemu-devel] How to add new architecture?
Date: Sun, 26 Aug 2012 00:02:32 +0800 [thread overview]
Message-ID: <20120825160230.GA85191@cs.nctu.edu.tw> (raw)
In-Reply-To: <5038F445.9010800@eagerm.com>
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
next prev parent reply other threads:[~2012-08-25 16:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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) [this message]
2012-08-25 15:43 ` 陳韋任 (Wei-Ren Chen)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120825160230.GA85191@cs.nctu.edu.tw \
--to=chenwj@iis.sinica.edu.tw \
--cc=eager@eagerm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).