Skip to content

Commit e73c444

Browse files
committed
target/arm: Fix ID_MMFR4 value on AArch64 'max' CPU
In commit 41a4bf1 the added code to set the CNP field in ID_MMFR4 for the AArch64 'max' CPU had a typo where it used the wrong variable name, resulting in ID_MMFR4 fields AC2, XNX and LSM being wrong. Fix the typo. Fixes: 41a4bf1 Reported-by: Laurent Desnogues <[email protected]> Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Edgar E. Iglesias <[email protected]> Reviewed-by: Laurent Desnogues <[email protected]> Message-id: [email protected]
1 parent 7769c23 commit e73c444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/arm/cpu64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ static void aarch64_max_initfn(Object *obj)
705705
u = cpu->isar.id_mmfr4;
706706
u = FIELD_DP32(u, ID_MMFR4, HPDS, 1); /* AA32HPD */
707707
u = FIELD_DP32(u, ID_MMFR4, AC2, 1); /* ACTLR2, HACTLR2 */
708-
u = FIELD_DP32(t, ID_MMFR4, CNP, 1); /* TTCNP */
708+
u = FIELD_DP32(u, ID_MMFR4, CNP, 1); /* TTCNP */
709709
cpu->isar.id_mmfr4 = u;
710710

711711
u = cpu->isar.id_aa64dfr0;

0 commit comments

Comments
 (0)