qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] target/arm: Add Neoverse-N1 registers


From: Peter Maydell
Subject: Re: [PATCH v2] target/arm: Add Neoverse-N1 registers
Date: Mon, 6 Mar 2023 15:43:27 +0000

On Mon, 6 Mar 2023 at 15:12, Chen Baozi <chenbaozi@phytium.com.cn> wrote:
>
> Add implementation defined registers for neoverse-n1 which
> would be accessed by TF-A. Since there is no DSU in Qemu,
> CPUCFR_EL1.SCU bit is set to 1 to avoid DSU registers definition.
>
> Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn>
> Tested-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
>  target/arm/cpu64.c     |  2 ++
>  target/arm/cpu_tcg.c   | 62 ++++++++++++++++++++++++++++++++++++++++++
>  target/arm/internals.h |  2 ++
>  3 files changed, 66 insertions(+)

We should add a comment here:
  /*
   * Report CPUCFR_EL1.SCU as 1, as we do not implement the DSU
   * (and in particular its system registers).
   */

If that's the only issue with this version of the patch
I'll fix it up when I add this into target-arm.next.

> +    { .name = "CPUCFR_EL1", .state = ARM_CP_STATE_AA64,
> +      .opc0 = 3, .opc1 = 0, .crn = 15, .crm = 0, .opc2 = 0,
> +      .access = PL1_R, .type = ARM_CP_CONST, .resetvalue = 4 },

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]