From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Juan Quintela" <quintela@redhat.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Andreas Färber" <afaerber@suse.de>,
"Patch Tracking" <patches@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] target-cris: update CPU state save/load to use VMStateDescription
Date: Mon, 25 May 2015 11:46:33 -0700 [thread overview]
Message-ID: <CAEgOgz4GmKnmZRpUpF4wSAKpvntLdPSmLWkuk1OROkxSr+8FCg@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA9aZLbKHpn-u6LgK4DGriK=vZ0Z_wwLf0E+uEwhx17zAA@mail.gmail.com>
On Mon, May 25, 2015 at 11:30 AM, Peter Maydell
<peter.maydell@linaro.org> wrote:
> On 25 May 2015 at 17:35, Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 25 May 2015 at 16:53, Peter Maydell <peter.maydell@linaro.org> wrote:
>>> From: Juan Quintela <quintela@redhat.com>
>>>
>>> Update the CRIS CPU state save/load to use a VMStateDescription struct
>>> rather than cpu_save/cpu_load functions.
>
>> Oops, this has a couple of issues I only noticed when I started
>> looking at the SPARC vmstate:
>> * forgot to register vmstate by setting cc->vmsd
>> * vmstate should be of CRISCPU, not CPUCRISState
>
> In looking at this I found that we currently have:
> CPUs that set cc->vmsd: arm, i386, lm32, mips, moxie, ppc, s390x
> CPUs that set dc->vmsd: alpha, m68k, microblaze, openrisc, sh4,
> unicore32, xtensa
> ...an exactly even split.
>
> Which of these is the recommended approach for new conversions?
Should it be DC? CPU should not have specific support for something
that already works for TYPE_DEVICE. This seems similar to
SysBusDevice::init where we progressively pushed everything up to the
higher level over time.
Regards,
Peter
> CCing Andreas since this is a QOM CPU question...
>
> thanks
> -- PMM
>
next prev parent reply other threads:[~2015-05-25 18:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-25 15:53 [Qemu-devel] [PATCH] target-cris: update CPU state save/load to use VMStateDescription Peter Maydell
2015-05-25 16:35 ` Peter Maydell
2015-05-25 18:30 ` Peter Maydell
2015-05-25 18:46 ` Peter Crosthwaite [this message]
2015-05-25 18:50 ` Peter Maydell
2015-05-25 23:58 ` Edgar E. Iglesias
2015-05-26 7:12 ` Peter Maydell
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=CAEgOgz4GmKnmZRpUpF4wSAKpvntLdPSmLWkuk1OROkxSr+8FCg@mail.gmail.com \
--to=peter.crosthwaite@xilinx.com \
--cc=afaerber@suse.de \
--cc=edgar.iglesias@gmail.com \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/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).