|
From: | Hao Wu |
Subject: | Re: [PATCH] target/arm: Add cortex-a35 |
Date: | Thu, 18 Aug 2022 09:43:10 -0700 |
On Mon, 15 Aug 2022 at 22:35, Hao Wu <wuhaotsh@google.com> wrote:
>
> Add cortex A35 core and enable it for virt board.
>
> Signed-off-by: Hao Wu <wuhaotsh@google.com>
> Reviewed-by: Joe Komlodi <komlodi@google.com>
> +static void aarch64_a35_initfn(Object *obj)
> +{
> + ARMCPU *cpu = ARM_CPU(obj);
> +
> + cpu->dtb_compatible = "arm,cortex-a35";
> + set_feature(&cpu->env, ARM_FEATURE_V8);
> + set_feature(&cpu->env, ARM_FEATURE_NEON);
> + set_feature(&cpu->env, ARM_FEATURE_GENERIC_TIMER);
> + set_feature(&cpu->env, ARM_FEATURE_AARCH64);
> + set_feature(&cpu->env, ARM_FEATURE_CBAR_RO);
> + set_feature(&cpu->env, ARM_FEATURE_EL2);
> + set_feature(&cpu->env, ARM_FEATURE_EL3);
> + set_feature(&cpu->env, ARM_FEATURE_PMU);
> +
> + /* From B2.2 AArch64 identification registers. */
> + cpu->midr = 0x410fd042;
The r1p0 TRM is out, so we might as well emulate that: 0x411FD040
A few fields are missing:
cpu->isar.dbgdidr
cpu->isar.dbgdevid
cpu->isar.dbgdevid1
cpu->isar.reset_pmcr_el0
cpu->gic_pribits
(these probably landed after you wrote these patch).
Otherwise looks OK.
Remind me, what did you want the Cortex-A35 in particular for ?
thanks
-- PMM
[Prev in Thread] | Current Thread | [Next in Thread] |