Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/cpuctl/arch fix ID_AA64ISAR0_EL1.ATOMIC field defin...



details:   https://anonhg.NetBSD.org/src/rev/07d989eac482
branches:  trunk
changeset: 359434:07d989eac482
user:      ryo <ryo%NetBSD.org@localhost>
date:      Wed Jan 05 19:53:32 2022 +0000

description:
fix ID_AA64ISAR0_EL1.ATOMIC field definition

diffstat:

 sys/arch/aarch64/include/armreg.h |  4 ++--
 usr.sbin/cpuctl/arch/aarch64.c    |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 65c08330acbb -r 07d989eac482 sys/arch/aarch64/include/armreg.h
--- a/sys/arch/aarch64/include/armreg.h Wed Jan 05 16:01:54 2022 +0000
+++ b/sys/arch/aarch64/include/armreg.h Wed Jan 05 19:53:32 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armreg.h,v 1.59 2021/10/26 16:58:46 ryo Exp $ */
+/* $NetBSD: armreg.h,v 1.60 2022/01/05 19:53:32 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -290,7 +290,7 @@
 #define         ID_AA64ISAR0_EL1_RDM_SQRDML     1
 #define        ID_AA64ISAR0_EL1_ATOMIC         __BITS(23,20)
 #define         ID_AA64ISAR0_EL1_ATOMIC_NONE    0
-#define         ID_AA64ISAR0_EL1_ATOMIC_SWP     1
+#define         ID_AA64ISAR0_EL1_ATOMIC_SWP     2
 #define        ID_AA64ISAR0_EL1_CRC32          __BITS(19,16)
 #define         ID_AA64ISAR0_EL1_CRC32_NONE     0
 #define         ID_AA64ISAR0_EL1_CRC32_CRC32X   1
diff -r 65c08330acbb -r 07d989eac482 usr.sbin/cpuctl/arch/aarch64.c
--- a/usr.sbin/cpuctl/arch/aarch64.c    Wed Jan 05 16:01:54 2022 +0000
+++ b/usr.sbin/cpuctl/arch/aarch64.c    Wed Jan 05 19:53:32 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aarch64.c,v 1.15 2021/05/17 18:43:18 riastradh Exp $   */
+/*     $NetBSD: aarch64.c,v 1.16 2022/01/05 19:53:32 ryo Exp $ */
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -29,7 +29,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: aarch64.c,v 1.15 2021/05/17 18:43:18 riastradh Exp $");
+__RCSID("$NetBSD: aarch64.c,v 1.16 2022/01/05 19:53:32 ryo Exp $");
 #endif /* no lint */
 
 #include <sys/types.h>
@@ -303,7 +303,7 @@
                .bitpos = 20, .bitwidth = 4, .name = "Atomic",
                .info = (const char *[16]) { /* 16=4bit */
                        [0] = "No Atomic",
-                       [1] = "LDADD/LDCLR/LDEOR/LDSET/LDSMAX/LDSMIN"
+                       [2] = "LDADD/LDCLR/LDEOR/LDSET/LDSMAX/LDSMIN"
                            "/LDUMAX/LDUMIN/CAS/CASP/SWP",
                }
        },



Home | Main Index | Thread Index | Old Index