qemu-arm.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Fedorov <serge.fdrv@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Cc: "QEMU Developers" <qemu-devel@nongnu.org>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Richard Henderson" <rth@twiddle.net>,
	qemu-arm <qemu-arm@nongnu.org>,
	"Edgar Iglesias" <edgar.iglesias@xilinx.com>
Subject: Re: [PATCH v2 4/8] target-arm: Add more fields to the data abort syndrome generator
Date: Fri, 26 Feb 2016 23:08:31 +0300	[thread overview]
Message-ID: <56D0B0BF.1040804@gmail.com> (raw)
In-Reply-To: <CAFEAcA9c7OAF1Lqw1=xd3n+ipuYvo_9AW42wW0JwXM+L4e8iww@mail.gmail.com>

On 25.02.2016 20:41, Peter Maydell wrote:
> On 19 February 2016 at 20:04, Edgar E. Iglesias
> <edgar.iglesias@gmail.com> wrote:
>> From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
>>
>> Add the following flags to the data abort syndrome generator:
>> * isv - Instruction syndrome valid
>> * sas - Syndrome access size
>> * sse - Syndrome sign extend
>> * srt - Syndrome register transfer
>> * sf  - Sixty-Four bit register width
>> * ar  - Acquire/Release
>>
>> These flags are not yet used, so this patch has no functional change.
>>
>> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
>> ---
>>   target-arm/internals.h | 20 ++++++++++++++++++--
>>   target-arm/op_helper.c |  8 ++++++--
>>   2 files changed, 24 insertions(+), 4 deletions(-)
>>
>> diff --git a/target-arm/internals.h b/target-arm/internals.h
>> index 34e2688..4e9d9f5 100644
>> --- a/target-arm/internals.h
>> +++ b/target-arm/internals.h
>> @@ -383,13 +383,29 @@ static inline uint32_t syn_insn_abort(int same_el, int ea, int s1ptw, int fsc)
>>           | (ea << 9) | (s1ptw << 7) | fsc;
>>   }
>>
>> -static inline uint32_t syn_data_abort(int same_el, int ea, int cm, int s1ptw,
>> +static inline uint32_t syn_data_abort(int same_el, int isv,
>> +                                      int sas, int sse, int srt,
>> +                                      int sf, int ar,
>> +                                      int ea, int cm, int s1ptw,
>>                                         int wnr, int fsc,
>>                                         bool is_16bit)
> Everywhere we call this (both now and once the full patchset has
> been applied) isv is a constant (either 0 or 1). I think it might
> be cleaner to define both a syn_data_abort_with_isv() and a
> syn_data_abort_no_isv(). Then the no_isv version doesn't need all
> the arguments that are zeroes.

Alternatively, we could define a function similar to 
LSInstructionSyndrome from ARMv8 ARM pseudocode, but which will pack the 
instruction syndrome from its components into a value of ISS<24:14>.

Best regards,
Sergey

  reply	other threads:[~2016-02-26 20:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-19 20:04 [PATCH v2 0/8] arm: Steps towards EL2 support round 6 Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 1/8] tcg: Add tcg_set_insn_param Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 2/8] gen-icount: Use tcg_set_insn_param Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 3/8] target-arm: Add the IL flag to syn_data_abort Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 4/8] target-arm: Add more fields to the data abort syndrome generator Edgar E. Iglesias
2016-02-25 17:41   ` Peter Maydell
2016-02-26 20:08     ` Sergey Fedorov [this message]
2016-04-29 11:54     ` Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 5/8] target-arm/translate-a64.c: Use extract32 in disas_ldst_reg_imm9 Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 6/8] target-arm/translate-a64.c: Unify some of the ldst_reg decoding Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 7/8] target-arm: A64: Create Instruction Syndromes for Data Aborts Edgar E. Iglesias
2016-02-25 18:26   ` Peter Maydell
2016-04-29 11:58     ` Edgar E. Iglesias
2016-02-19 20:04 ` [PATCH v2 8/8] target-arm: Use isyn.swstep.ex to hold the is_ldex state Edgar E. Iglesias
2016-02-25 18:28   ` Peter Maydell
2016-02-26  8:22     ` Edgar E. Iglesias

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=56D0B0BF.1040804@gmail.com \
    --to=serge.fdrv@gmail.com \
    --cc=alex.bennee@linaro.org \
    --cc=edgar.iglesias@gmail.com \
    --cc=edgar.iglesias@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.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).