From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Patch Tracking <patches@linaro.org>
Subject: Re: [Qemu-devel] [PATCH 1/4] target-arm: Add the AArch64 view of the Secure physical timer
Date: Sat, 25 Jul 2015 12:36:45 +1000 [thread overview]
Message-ID: <20150725023645.GA3976@toto> (raw)
In-Reply-To: <CAFEAcA8Jzow5kK0aHw87Fkj3t6G54UtEULgwNYw=8BRwjUsZ1Q@mail.gmail.com>
On Fri, Jul 24, 2015 at 11:06:01AM +0100, Peter Maydell wrote:
> On 24 July 2015 at 10:48, Edgar E. Iglesias <edgar.iglesias@gmail.com> wrote:
> > On Thu, Jul 16, 2015 at 12:47:26PM +0100, Peter Maydell wrote:
> >> + { .name = "CNTPS_CVAL_EL1", .state = ARM_CP_STATE_AA64,
> >> + .opc0 = 3, .opc1 = 7, .crn = 14, .crm = 2, .opc2 = 2,
> >> + .type = ARM_CP_IO,
> >> + .accessfn = gt_stimer_access,
> >> + .fieldoffset = offsetof(CPUARMState, cp15.c14_timer[GTIMER_SEC].cval),
> >> + .writefn = gt_sec_cval_write, .raw_writefn = raw_write,
>
> > I think you've missed a .access = PL1_RW here. With that change the series passes my sectimer tests.
>
> Yep, you're right, this needs to be folded into this patch:
>
> --- a/target-arm/helper.c
> +++ b/target-arm/helper.c
> @@ -1679,7 +1679,7 @@ static const ARMCPRegInfo generic_timer_cp_reginfo[] = {
> },
> { .name = "CNTPS_CVAL_EL1", .state = ARM_CP_STATE_AA64,
> .opc0 = 3, .opc1 = 7, .crn = 14, .crm = 2, .opc2 = 2,
> - .type = ARM_CP_IO,
> + .type = ARM_CP_IO, .access = PL1_RW,
> .accessfn = gt_stimer_access,
> .fieldoffset = offsetof(CPUARMState, cp15.c14_timer[GTIMER_SEC].cval),
> .writefn = gt_sec_cval_write, .raw_writefn = raw_write,
>
> (I won't bother resending unless there are other fixes that need
> to be made too.)
Sounds good, the rest looks good to me, feel free to add my RB on the entire series.
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Cheers,
Edgar
next prev parent reply other threads:[~2015-07-25 2:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-16 11:47 [Qemu-devel] [PATCH 0/4] target-arm: Implement Secure physical timer Peter Maydell
2015-07-16 11:47 ` [Qemu-devel] [PATCH 1/4] target-arm: Add the AArch64 view of the " Peter Maydell
2015-07-24 9:48 ` Edgar E. Iglesias
2015-07-24 10:06 ` Peter Maydell
2015-07-25 2:36 ` Edgar E. Iglesias [this message]
2015-07-16 11:47 ` [Qemu-devel] [PATCH 2/4] target-arm: Add AArch32 banked register access to secure " Peter Maydell
2015-07-16 11:47 ` [Qemu-devel] [PATCH 3/4] hw/arm/virt: Wire up secure timer interrupt Peter Maydell
2015-07-16 11:47 ` [Qemu-devel] [PATCH 4/4] hw/cpu/a15mpcore: Wire up hyp and secure physical timer interrupts 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=20150725023645.GA3976@toto \
--to=edgar.iglesias@gmail.com \
--cc=patches@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).