Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Fix detection of FP and SIMD featur...



details:   https://anonhg.NetBSD.org/src/rev/0c357616214e
branches:  trunk
changeset: 955734:0c357616214e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 10 08:22:57 2020 +0000

description:
Fix detection of FP and SIMD features on Armv8.2+.

diffstat:

 sys/arch/aarch64/aarch64/cpu.c |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r bd1ab4661b61 -r 0c357616214e sys/arch/aarch64/aarch64/cpu.c
--- a/sys/arch/aarch64/aarch64/cpu.c    Sat Oct 10 07:28:04 2020 +0000
+++ b/sys/arch/aarch64/aarch64/cpu.c    Sat Oct 10 08:22:57 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.55 2020/10/07 16:03:10 jmcneill Exp $ */
+/* $NetBSD: cpu.c,v 1.56 2020/10/10 08:22:57 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.55 2020/10/07 16:03:10 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: cpu.c,v 1.56 2020/10/10 08:22:57 jmcneill Exp $");
 
 #include "locators.h"
 #include "opt_arm_debug.h"
@@ -378,7 +378,9 @@
                break;
        }
        switch (__SHIFTOUT(id->ac_aa64pfr0, ID_AA64PFR0_EL1_FP)) {
-       case ID_AA64PFR0_EL1_FP_IMPL:
+       case ID_AA64PFR0_EL1_FP_NONE:
+               break;
+       default:
                aprint_verbose(", FP");
                break;
        }
@@ -422,7 +424,9 @@
 
        /* PFR0:AdvSIMD */
        switch (__SHIFTOUT(id->ac_aa64pfr0, ID_AA64PFR0_EL1_ADVSIMD)) {
-       case ID_AA64PFR0_EL1_ADV_SIMD_IMPL:
+       case ID_AA64PFR0_EL1_ADV_SIMD_NONE:
+               break;
+       default:
                aprint_verbose(", NEON");
                break;
        }



Home | Main Index | Thread Index | Old Index