From: Peter Maydell <peter.maydell@linaro.org>
To: Liviu Ionescu <ilg@livius.net>
Cc: Michael Davidsaver <mdavidsaver@gmail.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Any progress with the Cortex-M4 emulation?
Date: Wed, 6 Apr 2016 23:04:49 +0100 [thread overview]
Message-ID: <CAFEAcA8m5z_HZHLKx0985nFVwK1tHoQYH6b9kmCP0X8hK5R-RA@mail.gmail.com> (raw)
In-Reply-To: <49544542-7BDE-4C03-843C-7852D345CF46@livius.net>
On 6 April 2016 at 22:54, Liviu Ionescu <ilg@livius.net> wrote:
>
>> On 06 Apr 2016, at 17:42, Peter Maydell <peter.maydell@linaro.org> wrote:
>>
>> On 6 April 2016 at 13:52, Liviu Ionescu <ilg@livius.net> wrote:
>>>
>>> I also have on my TODO list to implement the SCB registers used
>>> during exception processing (MMFAR, BFAR, CFSR); I checked and
>>> in version 2.5.1 apparently they are still not implemented.
>>
>> Those I think are covered by Michael's patchset.
>
> I updated my git and browsed the log records, the only commits
> of Michael were from Mov 3, and apparently did not include this
> functionality.
>
>> This will clash very badly with Michael's in-flight
>> patchset.
>
> you mean Michael's code is not yet in the master branch?
Yes; patches were posted to the mailing list but there were
code review comments which haven't yet been addressed.
We went through a couple of rounds of review; it was
looking promising but still needed some more work. The
last posted patchset was:
https://lists.nongnu.org/archive/html/qemu-devel/2015-12/msg00504.html
(the second half of that is adding MPU support so you
can ignore it.)
>> I think it would be much better to get that
>> complete and upstream first, because otherwise you'll
>> probably end up having to redo a lot of work.
>
> my intent is to isolate the Cortex-M code from the
> existing ARM implementation, practically it should be
> a fresh start of the Cortex-M code, with a NVIC that no
> longer inherits from GIC.
Michael's patchset does that already.
> if you plan to further maintain the existing code, fain,
> but for me it is a bit too messy and I cannot rely on it,
> I need a clean implementation of the system peripherals,
> with properly processed exceptions.
Michael's patchset handles exceptions properly (at
any rate much closer to architecturally than our
current code).
> if Michael code is not in, when do you think it will be,
> so I can make a decision to either continue to patch the
> existing code or to redo the system code?
Somebody needs to do the necessary work to fix the
code review issues. I'm guessing from not having seen
any mails from Michael since December that he's been
busy with other things. If I were in your position I
would start with Michael's patchset and make the
necessary fixes to it to get it upstreamable. That's
likely going to be faster than starting the same
thing from scratch.
thanks
-- PMM
next prev parent reply other threads:[~2016-04-06 22:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 21:57 [Qemu-devel] Any progress with the Cortex-M4 emulation? Liviu Ionescu
2016-04-06 12:02 ` Peter Maydell
2016-04-06 12:52 ` Liviu Ionescu
2016-04-06 14:42 ` Peter Maydell
2016-04-06 21:54 ` Liviu Ionescu
2016-04-06 22:04 ` Peter Maydell [this message]
2016-04-06 22:23 ` Liviu Ionescu
2016-04-07 0:46 ` Michael Davidsaver
2016-04-07 7:04 ` Liviu Ionescu
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=CAFEAcA8m5z_HZHLKx0985nFVwK1tHoQYH6b9kmCP0X8hK5R-RA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=ilg@livius.net \
--cc=mdavidsaver@gmail.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).