From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [PATCH 1/1] target/arm: Split out aa64_va_parameter_tbi, aa64_va_parameter_tbid
Date: Fri, 7 Feb 2020 14:30:32 +0000 [thread overview]
Message-ID: <50d8b779-f51a-f522-1c34-8a7c1e4f2a16@linaro.org> (raw)
In-Reply-To: <CAFEAcA-FSQH2dt-mE_qS+WK4m7V2TBfPMoP_hrLLNwsNqG8jKg@mail.gmail.com>
On 2/7/20 2:00 PM, Peter Maydell wrote:
>>
>> + /* Present TBI as a composite with TBID. */
>> + tbi = aa64_va_parameter_tbi(tcr, mmu_idx);
>> + if (!data) {
>> + tbi &= ~aa64_va_parameter_tbid(tcr, mmu_idx);
>> + }
>> + tbi = (tbi >> select) & 1;
>
> ...but aa64_va_parameters() always sets
> select = extract64(va, 55, 1);
> even for the 1-range case, and then we assume in this bit
> of code that we can pull the corresponding bit out of tbi.
>
> Don't we need to either duplicate the bit returned by
> aa64_va_parameter_tbi() in the 1-range case, or else
> only shift tbi by 'select' in the 2-range case ?
I think we need to force select = 0 in the 1-range case, since "select == 1"
makes no sense in that case.
r~
prev parent reply other threads:[~2020-02-07 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-06 13:08 [PATCH 0/1] target/arm: Reduce aa64_va_parameter overhead Richard Henderson
2020-02-06 13:08 ` [PATCH 1/1] target/arm: Split out aa64_va_parameter_tbi, aa64_va_parameter_tbid Richard Henderson
2020-02-07 14:00 ` Peter Maydell
2020-02-07 14:30 ` Richard Henderson [this message]
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=50d8b779-f51a-f522-1c34-8a7c1e4f2a16@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.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).