From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] new MIPS instructions
Date: Sun, 23 Apr 2006 19:56:37 +0100 [thread overview]
Message-ID: <200604231956.38445.paul@codesourcery.com> (raw)
In-Reply-To: <444BCA67.6020300@gmail.com>
On Sunday 23 April 2006 19:41, Dirk Behme wrote:
> Thiemo Seufer wrote:
> > Fabrice Bellard wrote:
> >>I suggest adding a parameter to cpu_mips_init() telling the exact CPU
> >>model which is emulated. Optionnal features (such as the FPU) could be
> >>specified with an additionnal parameter.
> >
> > Probably with an additional switch "emulate everything we know about",
> > which would be especially useful for usermode emulation where CPU
> > specifics don't matter that much.
>
> Good points, but I don't know which is the best way to go ;)
> I think there are pros for both ways:
The way the Arm emulation handles this is to have a set of features that are
checked by the emulation code. Or at least that's the idea, current CVS
doesn't actually enforce most of these.
CPU selection is done by CPU model. This selects which features are available,
and cpu specific info (Device IDs, etc). If neccy for usermode emulation you
can invent a fictional CPU that contains the superset of all features.
I think ppc does something similar. Ideally there would be a common mechanism,
but that doesn't exist.
The important thing is to make the emulation conditional, even if the initial
implementation just uses compile time constants. Once the conditionals are
there it's relatively easy to wire them up to whatever cpu selection
mechanisms qemu invents.
Paul
next prev parent reply other threads:[~2006-04-23 18:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-23 17:27 [Qemu-devel] new MIPS instructions Fabrice Bellard
2006-04-23 17:48 ` Thiemo Seufer
2006-04-23 18:41 ` Dirk Behme
2006-04-23 18:56 ` Paul Brook [this message]
2006-04-23 22:48 ` Thiemo Seufer
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=200604231956.38445.paul@codesourcery.com \
--to=paul@codesourcery.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).