From nobody Mon Jun 12 13:50:21 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 4QftNs3crqz4cGt0; Mon, 12 Jun 2023 13:50:21 +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 4QftNs31smz47Y5; Mon, 12 Jun 2023 13:50:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686577821; 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=2xdAsbHCYEwkzUtSs5esgzI6ez5mQpAfrApcFTHHnqY=; b=IPue5zEhL0u5cx2I7bB1GyRqpYvxrXq5xIgGRYPyFDkkrk352MI1hurlrtCF9E5psjEmyQ Bofo0/rMptmrhPdAOTSVLUPuTGX1w/KJDGYiY/nJvJGuuG+j546GRWOwtvHOfdZ68XHJMQ NbEPwGA+OQEOJAiaQePQj+EC1RJQGKr+uk10VtcjsxOO5wen+HmhjF43l1ksy+CSdTx/Oi n3VmYMqqUBEwnYYJc3trq42875R4SMfW0vsJjA1bMKJCH8x/804F6pgBaVYMWeMSLWonkR bDNIldXerVdErQRkaVwQeaeZ97ELydlPp+/TuUo7qYTw9pBocggKtsjGuwLkGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686577821; 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=2xdAsbHCYEwkzUtSs5esgzI6ez5mQpAfrApcFTHHnqY=; b=Gm7ZgBFXrPZYlsBHCRgqUxOdSElBy+1X8pFs3GUHg/sm0CT7B71JBlREUbMyZUBv2VqPeq Euoilsg7mugs3FnB6xkG6JYi07Tr0yGl/PHH3gt+OsSwi18sB4lBF6IuZxICdUNDeByiMX z1j3DCjBXV8+uDTqWiPv1qAjam5RLRs6yZ1SOuP82mcC3tjIrWUqyFU+KgA9vWgByPdMTk PeNynkE2nlJvBcMH1Iw+8ylV+Td8M5ehbh8/ZwgT7nnzClKDSjJwOc6ZebDC6XNsUK3GB3 L25wWs3X7DKxL5WxmvsCtKgxIqH8Q4u+Se0LlT/v0QX5pGinlVRZ5GrV/hGEAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686577821; a=rsa-sha256; cv=none; b=bANbrpsy697Vsnbwh3fpoLkw5KDBoa37eC12FuudbPVLqRwQJu3P4BTMYt2dN+5dk3hI7o ukaGSeECZ//aQeS6gyrGFkY1zVJL+ECv60CrbESeasW4u+CtpGoozTGEbOMXQjriTK6H7E YGRLWj1K+9IJ0PdT7qHI1VLJAEiRn9S81BjCfcx5QFZMZsiltHhOlU5w4SudFuvsPH4DA0 QVmQpSvwJyIyP9KV4AggNzz9NujwrtSF1k0/4ywKkOgkU+3a27TP1ZKWLwvDzyKlbQJ8ff M/D7vgFwW5kHf+zWR/X6y2rlS3Z5m4fwvtwlc9VKVJ0ISEWnqPEThQK1tQu+OA== 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 4QftNs1dZYzhj9; Mon, 12 Jun 2023 13:50:21 +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 35CDoLpO089365; Mon, 12 Jun 2023 13:50:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35CDoLXA089364; Mon, 12 Jun 2023 13:50:21 GMT (envelope-from git) Date: Mon, 12 Jun 2023 13:50:21 GMT Message-Id: <202306121350.35CDoLXA089364@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: db5bd5ba6bfb - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: db5bd5ba6bfbd3de408efc0daee0d8ed06e84004 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=db5bd5ba6bfbd3de408efc0daee0d8ed06e84004 commit db5bd5ba6bfbd3de408efc0daee0d8ed06e84004 Author: Mitchell Horne AuthorDate: 2023-05-22 23:52:28 +0000 Commit: Mitchell Horne CommitDate: 2023-06-12 13:49:54 +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 (cherry picked from commit 78a3420c20e075ca8c44a4670ab5ca5afe6bbdf5) --- 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 8ae3ab8478f3..36f7e4a4940a 100644 --- a/sys/riscv/riscv/identcpu.c +++ b/sys/riscv/riscv/identcpu.c @@ -431,5 +431,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"); } }