All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	kvm-devel <kvm@vger.kernel.org>,
	arm-mail-list <linux-arm-kernel@lists.infradead.org>,
	"kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>,
	Christoffer Dall <christoffer.dall@linaro.org>,
	Marc Zyngier <marc.zyngier@arm.com>
Subject: Re: [PATCH v5 6/6] target-arm: cpu.h document why env->spsr exists
Date: Thu, 26 Mar 2015 17:26:32 +0000	[thread overview]
Message-ID: <CAFEAcA_x5SGWcB1qgUKCTO+6SXVh9m1PXhHmwOzYOsVz9fK_sg@mail.gmail.com> (raw)
In-Reply-To: <1427130344-27986-7-git-send-email-alex.bennee@linaro.org>

On 23 March 2015 at 17:05, Alex Bennée <alex.bennee@linaro.org> wrote:
> I was getting very confused about the duplication of state so wanted to
> make it explicit.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> diff --git a/target-arm/cpu.h b/target-arm/cpu.h
> index 083211c..6dc1799 100644
> --- a/target-arm/cpu.h
> +++ b/target-arm/cpu.h
> @@ -155,6 +155,11 @@ typedef struct CPUARMState {
>         This contains all the other bits.  Use cpsr_{read,write} to access
>         the whole CPSR.  */
>      uint32_t uncached_cpsr;
> +    /* The spsr is a alias for spsr_elN where N is the current
> +     * exception level.

This comment is still wrong.

> It is provided for here so the TCG msr/mrs
> +     * implementation can access one register.

...and this is wrong too.

> Care needs to be taken
> +     * to ensure the banked_spsr[] is also updated.
> +     */
>      uint32_t spsr;
>
>      /* Banked registers.  */

I think it would be better to just drop this patch, really...

-- PMM

WARNING: multiple messages have this Message-ID (diff)
From: Peter Maydell <peter.maydell@linaro.org>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: kvm-devel <kvm@vger.kernel.org>,
	Marc Zyngier <marc.zyngier@arm.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Christoffer Dall <christoffer.dall@linaro.org>,
	"kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>,
	arm-mail-list <linux-arm-kernel@lists.infradead.org>
Subject: Re: [Qemu-devel] [PATCH v5 6/6] target-arm: cpu.h document why env->spsr exists
Date: Thu, 26 Mar 2015 17:26:32 +0000	[thread overview]
Message-ID: <CAFEAcA_x5SGWcB1qgUKCTO+6SXVh9m1PXhHmwOzYOsVz9fK_sg@mail.gmail.com> (raw)
In-Reply-To: <1427130344-27986-7-git-send-email-alex.bennee@linaro.org>

On 23 March 2015 at 17:05, Alex Bennée <alex.bennee@linaro.org> wrote:
> I was getting very confused about the duplication of state so wanted to
> make it explicit.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> diff --git a/target-arm/cpu.h b/target-arm/cpu.h
> index 083211c..6dc1799 100644
> --- a/target-arm/cpu.h
> +++ b/target-arm/cpu.h
> @@ -155,6 +155,11 @@ typedef struct CPUARMState {
>         This contains all the other bits.  Use cpsr_{read,write} to access
>         the whole CPSR.  */
>      uint32_t uncached_cpsr;
> +    /* The spsr is a alias for spsr_elN where N is the current
> +     * exception level.

This comment is still wrong.

> It is provided for here so the TCG msr/mrs
> +     * implementation can access one register.

...and this is wrong too.

> Care needs to be taken
> +     * to ensure the banked_spsr[] is also updated.
> +     */
>      uint32_t spsr;
>
>      /* Banked registers.  */

I think it would be better to just drop this patch, really...

-- PMM

WARNING: multiple messages have this Message-ID (diff)
From: peter.maydell@linaro.org (Peter Maydell)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 6/6] target-arm: cpu.h document why env->spsr exists
Date: Thu, 26 Mar 2015 17:26:32 +0000	[thread overview]
Message-ID: <CAFEAcA_x5SGWcB1qgUKCTO+6SXVh9m1PXhHmwOzYOsVz9fK_sg@mail.gmail.com> (raw)
In-Reply-To: <1427130344-27986-7-git-send-email-alex.bennee@linaro.org>

On 23 March 2015 at 17:05, Alex Benn?e <alex.bennee@linaro.org> wrote:
> I was getting very confused about the duplication of state so wanted to
> make it explicit.
>
> Signed-off-by: Alex Benn?e <alex.bennee@linaro.org>
>
> diff --git a/target-arm/cpu.h b/target-arm/cpu.h
> index 083211c..6dc1799 100644
> --- a/target-arm/cpu.h
> +++ b/target-arm/cpu.h
> @@ -155,6 +155,11 @@ typedef struct CPUARMState {
>         This contains all the other bits.  Use cpsr_{read,write} to access
>         the whole CPSR.  */
>      uint32_t uncached_cpsr;
> +    /* The spsr is a alias for spsr_elN where N is the current
> +     * exception level.

This comment is still wrong.

> It is provided for here so the TCG msr/mrs
> +     * implementation can access one register.

...and this is wrong too.

> Care needs to be taken
> +     * to ensure the banked_spsr[] is also updated.
> +     */
>      uint32_t spsr;
>
>      /* Banked registers.  */

I think it would be better to just drop this patch, really...

-- PMM

  reply	other threads:[~2015-03-26 17:26 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 17:05 [PATCH v5 0/6] QEMU ARM64 Migration Fixes Alex Bennée
2015-03-23 17:05 ` Alex Bennée
2015-03-23 17:05 ` [Qemu-devel] " Alex Bennée
2015-03-23 17:05 ` [PATCH v5 1/6] target-arm: Store SPSR_EL1 state in banked_spsr[1] (SPSR_svc) Alex Bennée
2015-03-23 17:05   ` Alex Bennée
2015-03-23 17:05   ` [Qemu-devel] " Alex Bennée
2015-03-24 14:32   ` Greg Bellows
2015-03-24 14:32     ` Greg Bellows
2015-03-24 14:32     ` Greg Bellows
2015-03-24 14:37     ` Peter Maydell
2015-03-24 14:37       ` Peter Maydell
2015-03-24 14:37       ` Peter Maydell
2015-03-23 17:05 ` [PATCH v5 2/6] target-arm: kvm: save/restore mp state Alex Bennée
2015-03-23 17:05   ` Alex Bennée
2015-03-23 17:05   ` [Qemu-devel] " Alex Bennée
2015-03-26 17:11   ` Peter Maydell
2015-03-26 17:11     ` Peter Maydell
2015-03-26 17:11     ` [Qemu-devel] " Peter Maydell
2015-03-23 17:05 ` [PATCH v5 3/6] hw/intc: arm_gic_kvm.c restore config first Alex Bennée
2015-03-23 17:05   ` Alex Bennée
2015-03-23 17:05   ` [Qemu-devel] " Alex Bennée
2015-03-26 17:12   ` Peter Maydell
2015-03-26 17:12     ` Peter Maydell
2015-03-26 17:12     ` [Qemu-devel] " Peter Maydell
2015-03-23 17:05 ` [PATCH v5 4/6] target-arm: kvm64 sync FP register state Alex Bennée
2015-03-23 17:05   ` Alex Bennée
2015-03-23 17:05   ` [Qemu-devel] " Alex Bennée
2015-03-26 17:20   ` Peter Maydell
2015-03-26 17:20     ` Peter Maydell
2015-03-26 17:20     ` [Qemu-devel] " Peter Maydell
2015-03-23 17:05 ` [PATCH v5 5/6] target-arm: kvm64 fix save/restore of SPSR regs Alex Bennée
2015-03-23 17:05   ` Alex Bennée
2015-03-23 17:05   ` [Qemu-devel] " Alex Bennée
2015-03-26 17:25   ` Peter Maydell
2015-03-26 17:25     ` Peter Maydell
2015-03-26 17:25     ` [Qemu-devel] " Peter Maydell
2015-03-23 17:05 ` [PATCH v5 6/6] target-arm: cpu.h document why env->spsr exists Alex Bennée
2015-03-23 17:05   ` Alex Bennée
2015-03-23 17:05   ` [Qemu-devel] " Alex Bennée
2015-03-26 17:26   ` Peter Maydell [this message]
2015-03-26 17:26     ` Peter Maydell
2015-03-26 17:26     ` [Qemu-devel] " 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=CAFEAcA_x5SGWcB1qgUKCTO+6SXVh9m1PXhHmwOzYOsVz9fK_sg@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=christoffer.dall@linaro.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=marc.zyngier@arm.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.