[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 21/21] target/arm: Correctly implement ACTLR2, HACTLR2
From: |
Richard Henderson |
Subject: |
Re: [PATCH v2 21/21] target/arm: Correctly implement ACTLR2, HACTLR2 |
Date: |
Fri, 14 Feb 2020 12:42:43 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/14/20 9:51 AM, Peter Maydell wrote:
> diff --git a/target/arm/cpu.c b/target/arm/cpu.c
> index c46bb5a5c09..9f618e120aa 100644
> --- a/target/arm/cpu.c
> +++ b/target/arm/cpu.c
> @@ -2718,6 +2718,7 @@ static void arm_max_initfn(Object *obj)
>
> t = cpu->isar.id_mmfr4;
> t = FIELD_DP32(t, ID_MMFR4, HPDS, 1); /* AA32HPD */
> + t = FIELD_DP32(t, ID_MMFR4, AC2, 1); /* ACTLR2, HACTLR2 */
> cpu->isar.id_mmfr4 = t;
> }
> #endif
> diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c
> index 8430d432943..32cf8ee98b0 100644
> --- a/target/arm/cpu64.c
> +++ b/target/arm/cpu64.c
> @@ -703,6 +703,10 @@ static void aarch64_max_initfn(Object *obj)
> u = FIELD_DP32(u, ID_MMFR3, PAN, 2); /* ATS1E1 */
> cpu->isar.id_mmfr3 = u;
>
> + u = cpu->isar.id_mmfr4;
> + u = FIELD_DP32(u, ID_MMFR4, AC2, 1); /* ACTLR2, HACTLR2 implemented
> */
> + cpu->isar.id_mmfr4 = u;
This highlights a missing set of HPDS for cpu64 max.
Saying "implemented" is somewhat redundant. Otherwise,
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH v2 15/21] target/arm: Provide ARMv8.4-PMU in '-cpu max', (continued)
- [PATCH v2 15/21] target/arm: Provide ARMv8.4-PMU in '-cpu max', Peter Maydell, 2020/02/14
- [PATCH v2 16/21] target/arm: Correct definition of PMCRDP, Peter Maydell, 2020/02/14
- [PATCH v2 17/21] target/arm: Correct handling of PMCR_EL0.LC bit, Peter Maydell, 2020/02/14
- [PATCH v2 19/21] target/arm: Use isar_feature function for testing AA32HPD feature, Peter Maydell, 2020/02/14
- [PATCH v2 20/21] target/arm: Use FIELD_EX32 for testing 32-bit fields, Peter Maydell, 2020/02/14
- [PATCH v2 18/21] target/arm: Test correct register in aa32_pan and aa32_ats1e1 checks, Peter Maydell, 2020/02/14
- [PATCH v2 21/21] target/arm: Correctly implement ACTLR2, HACTLR2, Peter Maydell, 2020/02/14
- Re: [PATCH v2 21/21] target/arm: Correctly implement ACTLR2, HACTLR2,
Richard Henderson <=