qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-arm <qemu-arm@nongnu.org>, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v3 2/4] target/arm: handle A-profile semihosting at translate time
Date: Fri, 6 Sep 2019 14:33:41 +0100	[thread overview]
Message-ID: <CAFEAcA-r9D71LoLowae8vm=sp1oojUBhppm0t97sUck4s5tp1Q@mail.gmail.com> (raw)
In-Reply-To: <87a7bhzhsn.fsf@linaro.org>

On Fri, 6 Sep 2019 at 14:16, Alex Bennée <alex.bennee@linaro.org> wrote:
>
>
> Peter Maydell <peter.maydell@linaro.org> writes:
>
> > On Fri, 6 Sep 2019 at 13:47, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> >
> > Doesn't this accidentally enable semihosting via SVC for
> > M-profile ?
>
> We must have done that before then.

No, we didn't do it before, because we were handling it in
arm_cpu_do_interrupt(), which is A/R-profile only. The
M-profile code goes via arm_v7m_cpu_do_interrupt() which doesn't
check for semihosting when it sees an EXCP_SWI.

> Just gate it with && !arm_dc_feature(s, ARM_FEATURE_M) then?

Yes, I think that's the right fix.

thanks
-- PMM


  reply	other threads:[~2019-09-06 13:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-06 12:47 [Qemu-devel] [PATCH v3 0/4] semihosting fixes Alex Bennée
2019-09-06 12:47 ` [Qemu-devel] [PATCH v3 1/4] target/arm: handle M-profile semihosting at translate time Alex Bennée
2019-09-06 15:03   ` Richard Henderson
2019-09-06 12:47 ` [Qemu-devel] [PATCH v3 2/4] target/arm: handle A-profile " Alex Bennée
2019-09-06 12:54   ` Peter Maydell
2019-09-06 13:16     ` Alex Bennée
2019-09-06 13:33       ` Peter Maydell [this message]
2019-09-06 15:05   ` Richard Henderson
2019-09-06 12:47 ` [Qemu-devel] [PATCH v3 3/4] target/arm: remove run time semihosting checks Alex Bennée
2019-09-06 12:47 ` [Qemu-devel] [PATCH v3 4/4] atomic_template: fix indentation in GEN_ATOMIC_HELPER Alex Bennée

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-r9D71LoLowae8vm=sp1oojUBhppm0t97sUck4s5tp1Q@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=qemu-arm@nongnu.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 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).