From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
To: Peter Maydell <peter.maydell@linaro.org>,
Richard Henderson <rth@twiddle.net>
Cc: Alex Zuepke <azu@sysgo.de>,
QEMU Developers <qemu-devel@nongnu.org>,
Fabien Chouteau <chouteau@adacore.com>
Subject: Re: [Qemu-devel] [PATCH for-2.5] sparc: allow CASA with ASI 0xa from user space
Date: Wed, 9 Dec 2015 23:24:51 +0000 [thread overview]
Message-ID: <5668B843.9020007@ilande.co.uk> (raw)
In-Reply-To: <CAFEAcA8Y4SfWtq=LGVV6GUp7kDp=ytOC-v55yjCrcg8M=ezL6w@mail.gmail.com>
On 08/12/15 21:28, Peter Maydell wrote:
> On 8 December 2015 at 19:59, Richard Henderson <rth@twiddle.net> wrote:
>> On 12/04/2015 07:01 AM, Alex Zuepke wrote:
>>> LEON3 allows the CASA instruction to be used from user space
>>> if the ASI is set to 0xa (user data).
>>>
>>> Signed-off-by: Alex Zuepke <azu@sysgo.de>
>>> ---
>>> target-sparc/translate.c | 3 ++-
>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/target-sparc/translate.c b/target-sparc/translate.c
>>> index 41a3319..63440dd 100644
>>> --- a/target-sparc/translate.c
>>> +++ b/target-sparc/translate.c
>>> @@ -5097,7 +5097,8 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn)
>>> if (IS_IMM) {
>>> goto illegal_insn;
>>> }
>>> - if (!supervisor(dc)) {
>>> + /* LEON3 allows CASA from user space with ASI 0xa */
>>> + if ((GET_FIELD(insn, 19, 26) != 0xa) && !supervisor(dc)) {
>>> goto priv_insn;
>>> }
>>> #endif
>>>
>>
>> Reviewed-by: Richard Henderson <rth@twiddle.net>
>>
>> This should probably be merged for 2.5.
>
> Very late, but a very small patch which only affects TCG SPARC,
> so I'm OK with applying it to master. (Mark, did you want to ack/review?)
My understanding from this thread is that it only affects LEON3 - while
I don't have any such images to test with, given that it's restricted to
LEON3 then I'd be fine if you were to apply this to master with an R-B
from Richard and Fabien (I'll do another OpenBIOS test suite run over
the weekend just to be sure).
ATB,
Mark.
next prev parent reply other threads:[~2015-12-09 23:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 15:01 [Qemu-devel] [PATCH] sparc: allow CASA with ASI 0xa from user space Alex Zuepke
2015-12-07 11:35 ` Fabien Chouteau
2015-12-07 12:41 ` "Züpke, Alexander"
2015-12-07 12:56 ` Fabien Chouteau
2015-12-07 13:07 ` "Züpke, Alexander"
2015-12-07 15:03 ` Fabien Chouteau
2015-12-08 19:59 ` [Qemu-devel] [PATCH for-2.5] " Richard Henderson
2015-12-08 21:28 ` Peter Maydell
2015-12-09 23:24 ` Mark Cave-Ayland [this message]
2015-12-10 11:43 ` 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=5668B843.9020007@ilande.co.uk \
--to=mark.cave-ayland@ilande.co.uk \
--cc=azu@sysgo.de \
--cc=chouteau@adacore.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).