From 8e0e0222cd89d27264dc0e358b8599996f3b19f7 Mon Sep 17 00:00:00 2001 From: riastradh Date: Sun, 10 May 2020 21:42:05 +0000 Subject: [PATCH] Teach cpuctl(8) about ARMv8.5-RNG RNDR/RNDRRS support. --- usr.sbin/cpuctl/arch/aarch64.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr.sbin/cpuctl/arch/aarch64.c b/usr.sbin/cpuctl/arch/aarch64.c index 5b02aedd96ca..87a737597de2 100644 --- a/usr.sbin/cpuctl/arch/aarch64.c +++ b/usr.sbin/cpuctl/arch/aarch64.c @@ -1,4 +1,4 @@ -/* $NetBSD: aarch64.c,v 1.8 2020/01/28 17:36:42 maxv Exp $ */ +/* $NetBSD: aarch64.c,v 1.9 2020/05/10 21:42:05 riastradh Exp $ */ /* * Copyright (c) 2018 Ryo Shimizu @@ -29,7 +29,7 @@ #include #ifndef lint -__RCSID("$NetBSD: aarch64.c,v 1.8 2020/01/28 17:36:42 maxv Exp $"); +__RCSID("$NetBSD: aarch64.c,v 1.9 2020/05/10 21:42:05 riastradh Exp $"); #endif /* no lint */ #include @@ -225,6 +225,13 @@ struct fieldinfo id_aa64isar0_fieldinfo[] = { "/CRC32CB/CRC32CH/CRC32CW/CRC32CX" } }, + { + .bitpos = 60, .bitwidth = 4, .name = "RNDR", + .info = (const char *[16]) { /* 16=4bit */ + [0] = "No RNDR/RNDRRS", + [1] = "RNDR/RNDRRS", + }, + }, { .bitwidth = 0 } /* end of table */ };