From: Meador Inge <meadori@codesourcery.com>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 0/2] target-arm: "any" CPUs for system-mode
Date: Mon, 13 Jul 2015 13:34:46 -0700 [thread overview]
Message-ID: <20150713203446.GC24071@mentor.com> (raw)
In-Reply-To: <CAEgOgz7gdV+CEeDwT6+XSs4QjZX3Hq8tYeu2NgKeWfmuyOu-FA@mail.gmail.com>
On Mon, Jul 06, 2015 at 04:05:46PM -0700, Peter Crosthwaite wrote:
> On Mon, Jul 6, 2015 at 3:49 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
> > On 6 July 2015 at 23:42, Peter Crosthwaite <peter.crosthwaite@xilinx.com> wrote:
> >> On Mon, Jul 6, 2015 at 3:29 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
> >>> On 6 July 2015 at 19:53, <meadori@codesourcery.com> wrote:
> >>>> From: Meador Inge <meadori@codesourcery.com>
> >>>>
> >>>> This patch series opens up the "any" CPU for system-mode and
> >>>> adds a new "any" variant named "anyvfp" that initializes the
> >>>> FP coprocessors as well.
> >>>
> >>> We deliberately removed cpu "any" for system mode in
> >>> commit f5f6d38b7458b8a back in 2013; I think the rationale
> >>> for its removal still holds. If you're emulating a system
> >>> you're emulating a specific system and you get a real
> >>> CPU. A CPU with no impdef sysregs or initialized feature
> >>> and ID registers is broken...
> >>
> >> You can still have a CPU+RAM only machine model, load elfs and get
> >> meaningful result on a debugger.
> >
> > Yeah, but what does "any" get you over just going ahead
> > and specifying your CPU type? What interrupt controller
> > should the "any" CPU type have? Generic timers? Etc.
> >
>
> None and none. You are only interested in CPU internal state with no IO at all.
Exactly. We have a use-case where QEMU acts as basically an ISS and we
only care about architecture level support. So, someone compiles their
application with various options (-march=armv7-a, -march=arv5te, etc...)
and runs those through GDB that connects to the QEMU GDB stub. From
the QEMU side we can launch an instance with '-cpu any' and expect most
applications to run on it regardless of how it was built with GCC.
This is a reasonable use-case and it is a very small change to QEMU,
which introduces hardly any complexity or maintenance burden.
> > There isn't zero utility there, but I don't really think
> > there's enough to justify cluttering up QEMU with when
> > "-cpu cortex-a15" is not very much more to type, and
> > has the advantage of being something that actually
> > exists in reality.
As mentioned above, there is utility and saying that it is "clutter" is a
bit of an exaggeration (it is 5 deletions(-) that introduces *one* new
option).
>
> There is a clean definition of an ARM CPU without any IO however which
> has utility in compiler testing.
I agree.
-- Meador
prev parent reply other threads:[~2015-07-13 20:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 18:53 [Qemu-devel] [PATCH 0/2] target-arm: "any" CPUs for system-mode meadori
2015-07-06 18:53 ` [Qemu-devel] [PATCH 1/2] target-arm: Allow CPU "any" for system-mode emulation meadori
2015-07-06 21:51 ` Peter Crosthwaite
2015-07-06 18:53 ` [Qemu-devel] [PATCH 2/2] target-arm: Add "anyvfp" CPU meadori
2015-07-06 22:00 ` Peter Crosthwaite
2015-07-13 20:21 ` Meador Inge
2015-07-13 21:32 ` Peter Crosthwaite
2015-07-06 22:31 ` Peter Maydell
2015-07-13 20:36 ` Meador Inge
2015-07-06 22:29 ` [Qemu-devel] [PATCH 0/2] target-arm: "any" CPUs for system-mode Peter Maydell
2015-07-06 22:42 ` Peter Crosthwaite
2015-07-06 22:49 ` Peter Maydell
2015-07-06 23:05 ` Peter Crosthwaite
2015-07-13 20:34 ` Meador Inge [this message]
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=20150713203446.GC24071@mentor.com \
--to=meadori@codesourcery.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.