From: Peter Maydell <peter.maydell@linaro.org>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
"Andreas Färber" <afaerber@suse.de>,
"Alistair Francis" <alistair.francis@xilinx.com>
Subject: Re: [Qemu-devel] [PATCH arm-midr v2 1/2] ARM: Convert MIDR to a property
Date: Sun, 19 Jan 2014 01:12:38 +0000 [thread overview]
Message-ID: <CAFEAcA_nftguA3V5KscnE-ZQZdW5WgossAXiecc2sDWv3N_0Pw@mail.gmail.com> (raw)
In-Reply-To: <CAEgOgz7JRv6UAE2WrXQt7RjvukRYqXNkS1LLQ4+XirLY_TG64A@mail.gmail.com>
On 19 January 2014 00:59, Peter Crosthwaite
<peter.crosthwaite@xilinx.com> wrote:
> Do you even need this now? The normal arrayified dc->props properties
> are added at device::init time. As TYPE_DEVICE is a parent class, its
> init function is called before CPUs (normal inits are called in
> parent->child order, the post_inits are reverse). This means the
> cpu::init fns should correctly set the device-specific default after
> device::init, trampling the bogus default defined in the property
> array.
>
> All of this however assumes that MIDR is unconditionally existent for
> all ARMCPU. Peter, are you able to confirm that thats ok before we
> commit to this implementation over the conditional post_init approach?
IIRC ARMv4 and earlier didn't define the MIDR, but we don't
actually emulate any of those. In general, my intent with all these
constant fields in the ARMCPU struct was that we'd end up making
them just properties available on all ARMCPU objects, and if the
particular subtype of ARMCPU happened not to have FP and so
didn't need the reset_fpsid, for example, it would just ignore whatever
value you set the property to. I don't think we need to tie ourselves
in knots to restrict the properties to particular CPUs if it is too
implementationally awkward (though it would be nice if we can
tie them to ARM_FEATURE_* bits for more or less free).
thanks
-- PMM
next prev parent reply other threads:[~2014-01-19 1:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 23:47 [Qemu-devel] [PATCH arm-midr v2 0/2] Make ARM-MIDR a property and use in Zynq Alistair Francis
2014-01-13 23:48 ` [Qemu-devel] [PATCH arm-midr v2 1/2] ARM: Convert MIDR to a property Alistair Francis
2014-01-19 0:59 ` Peter Crosthwaite
2014-01-19 1:12 ` Peter Maydell [this message]
2014-01-19 1:46 ` Peter Crosthwaite
2014-01-19 11:21 ` Peter Maydell
2014-01-20 0:12 ` Alistair Francis
2014-01-13 23:48 ` [Qemu-devel] [PATCH arm-midr v2 2/2] ZYNQ: Implement board MIDR control for Zynq Alistair Francis
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=CAFEAcA_nftguA3V5KscnE-ZQZdW5WgossAXiecc2sDWv3N_0Pw@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=afaerber@suse.de \
--cc=alistair.francis@xilinx.com \
--cc=peter.crosthwaite@xilinx.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).