From nobody Tue May 23 13:23:22 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQZky6sT2z4CT6j; Tue, 23 May 2023 13:23:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQZky6Bl3z3sxq; Tue, 23 May 2023 13:23:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684848202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZCY2Ulum+ycJZbjvfxUCNotxccs9jqqBa9i0+nSEkfo=; b=BSgpkPLBSN5IXrkrwDEIFiHMTJNfDuYrugGgtQEeBsbRSOmerzdT58uSZ5DGlbGZ3lTbl9 31fusQZjc4k/laykxxaFDqSIariyzbDqA/AAgrl8ZWmBgtIA5gHRBTk2HNppWN2+3LkDGj nQN6zkE77KxTM9yZ12BY7jgM3MnguzUqrj+r06IdUs8DNRb6gNwQ08jqoRUrWCX7QUCZ6e QT++Waxjy6oe84Ova9+bSn9h8vsHzMrbB9zGjZpQD/CNKy3Y1dvdNLz3VdRrJ8iMKIr/Ws bdbSuiCvOGeK89ipskupeGgQSSCUobMvSMpCkt7NrfxtuJm8YKxD7f3jh4aGGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684848202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZCY2Ulum+ycJZbjvfxUCNotxccs9jqqBa9i0+nSEkfo=; b=EAK4qyZoBby6GrzROf93jRyswj8+Fzk1gXvc+IBCnfyvtJfn3aj4WpO++MYXvq390RpIOW qjUU7CsE9BzS8/CcqEKiGiV3Ew+vlw41CDGZNj2kfCoOac82gyteEw8I+vY3Z7ehx2y7oI STy73647vj8TbkZ1M8vx+NacjDB9O1Vr95AwEmuQ17c1+7JXUdN6xBoCZpkh6oUCSfam1E 6vsBgqcOKmmoGS7FPF8akIzVT9ctWuvzRVLpt5aD3WluNqCXXcsHmYqwglf6cPMEfMHjJF kLz612i8+FS/VeiHFqjEZPSZpltpecsb9hozEQ9NBMYF7sCipWYd9vdz2/XWdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684848202; a=rsa-sha256; cv=none; b=JoAKT7bziBYz2Mn2vDcXD/BNg9uYYkXhEdcw722PT5vU8ZPBU5yJqk6EmaaX6mVHb+DGrj QCRsfPUkFlLbHc5sB9IVulEY517Uy2/d/ywsZPYQFE2ACYAfGcNXvepYAvFUFdy3+sYfSH Q23DAw4eZtuK6HYbCltJYTEuRwGvjqadSJD0hjT+zzSPksDjAySqBzpX4L/+ssUok0PN2C 9Cj4/LwGqwDAiYKGV91PeDxQ/I8Y4kVftSLx1hhSk0O6eMYtbR3xVfQ0oaJP/oSS45U2iz dmgRWvhuQy4PY+N6umZrJilOY3Ig1USLl247oQe7A2+PlaafrKTpdumbmNpILg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QQZky4p8bz11Qc; Tue, 23 May 2023 13:23:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34NDNMrt016543; Tue, 23 May 2023 13:23:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34NDNM2Y016542; Tue, 23 May 2023 13:23:22 GMT (envelope-from git) Date: Tue, 23 May 2023 13:23:22 GMT Message-Id: <202305231323.34NDNM2Y016542@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 78a3420c20e0 - main - riscv: Print ISA extensions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 78a3420c20e075ca8c44a4670ab5ca5afe6bbdf5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=78a3420c20e075ca8c44a4670ab5ca5afe6bbdf5 commit 78a3420c20e075ca8c44a4670ab5ca5afe6bbdf5 Author: Mitchell Horne AuthorDate: 2023-05-22 23:52:28 +0000 Commit: Mitchell Horne CommitDate: 2023-05-23 13:19:26 +0000 riscv: Print ISA extensions Report the CPU's single-letter ISA extensions in printcpuinfo(). Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39813 --- sys/riscv/riscv/identcpu.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c index 6d82e4a2ad77..d4ad8a1078b6 100644 --- a/sys/riscv/riscv/identcpu.c +++ b/sys/riscv/riscv/identcpu.c @@ -429,5 +429,12 @@ printcpuinfo(u_int cpu) desc->cpu_mvendor_name, desc->cpu_march_name, hart); printf(" marchid=%#lx, mimpid=%#lx\n", marchid, mimpid); + printf(" ISA: %#b\n", desc->isa_extensions, + "\020" + "\01Atomic" + "\03Compressed" + "\04Double" + "\06Float" + "\15Mult/Div"); } }