From nobody Thu Aug 22 19:36:58 2024 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 4WqYP6715Qz5TWPt; Thu, 22 Aug 2024 19:36:58 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WqYP66YtCz4QBL; Thu, 22 Aug 2024 19:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724355418; 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=+j5nvK77ZhyFp2t3OcupZG0A9ncMYFXcnW7FmBOKBO0=; b=qQmwUcAsmrclJK5IGrAgdpv6qgjdgUyaLhPJ1QCV68YA9cNhm0cSYK0dvGNGOObgQ7RN5O R9+PRwrwmOOm0WKuOKS3cwrkkk5D4ub0hmlXbenuBSmBLlC6njJRs7EyRHg4O+WQ9QPgG4 fxjWcH1FWEVn6zcwOzzTEMH+vtj8gxfb3HsKyTB2lpAlvap7bSimQa5xhyIfu44VGKhTZz TjplfczA2+zsV18RneSqRRAeCAKSNDAwr0krlPlQFAJTJmgQSzH5nfSj8NRm8/EOCdduDb hQE/h3nZGIL41vGcksmes/8d2T74oFX4DrHSIVUZRiM+qzX99fv2lAWZzTRbUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724355418; a=rsa-sha256; cv=none; b=EUc4O2wU7sM6C+Vpgmzem9gBStWSCrb2i0uM2OqzXeSt+PtikqGCx5hawsZBzFUOHh6wRr C786mfsWBtHmhAvxJQfqy7KmZCy36WpFonNgLne0t0iRGcoX701OYNMgc0/fa0QGS2aMM2 YQ6EbbS1Lw4TdI3pp/6IH03cMy4tTY5ZJISUGDpuFEbzmzFBe+0oA+N3PuJE/JGEkdag8N KXHl5RLgtY5VomM8BCer8pht9Q4Gb5xJoNNiNuW1rIXunOGF/hVYVvJHwV1q5dnwyhBvfk PquVZZYvnLCWCkalSlx1B0gSlM5vjx2EqGqg20cbv45Q9y9Rp0WjA2YSlJulpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724355418; 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=+j5nvK77ZhyFp2t3OcupZG0A9ncMYFXcnW7FmBOKBO0=; b=kEQdFRZNGSFrUR2OVIh/9eVyqb6IGvL/op66/Wwq7iZpCTMmyUCQOfz9s33v7QJ6k89lk5 AqJZXFCc6vK/7dHeQ6Zt1f1quQgyUL90YnnTSShelFA/x0jSO9D5bxn5NjMVkH/MjceaNI vgcincrD5N9foonu+Esu1p+roPbMErqeEyy77L5cirx3g1uo06v/U7IljRDBdD++OFDExo gLP2v+TX0+XB93dUicU1qj4IMrztc1DJ92QZlOI1F82haa7GfQ64UlokNKJzp+4f7YkYxU 4XHJ3jrLyOIlAikVCgHw51zhMbaVCMJGSLJrA44TQTRCfSg2d5nnvhSxCIjUHA== 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 4WqYP662jxzgjl; Thu, 22 Aug 2024 19:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47MJawM3034824; Thu, 22 Aug 2024 19:36:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47MJawYE034821; Thu, 22 Aug 2024 19:36:58 GMT (envelope-from git) Date: Thu, 22 Aug 2024 19:36:58 GMT Message-Id: <202408221936.47MJawYE034821@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: 228a3e73e169 - main - riscv: Recognise B extension for AT_HWCAP 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 228a3e73e16983bc7f985b24ef20909500792d3c Auto-Submitted: auto-generated The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=228a3e73e16983bc7f985b24ef20909500792d3c commit 228a3e73e16983bc7f985b24ef20909500792d3c Author: Jessica Clarke AuthorDate: 2024-08-22 19:36:44 +0000 Commit: Jessica Clarke CommitDate: 2024-08-22 19:36:44 +0000 riscv: Recognise B extension for AT_HWCAP This was ratified earlier this year as an alias for Zba_Zbb_Zbs. Whilst we don't currently export multi-letter extensions, we can still export this alias in AT_HWCAP. Reviewed by: mhorne MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D46277 --- sys/riscv/include/elf.h | 1 + sys/riscv/riscv/identcpu.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/riscv/include/elf.h b/sys/riscv/include/elf.h index ff0f36d2efe6..a14d6859902b 100644 --- a/sys/riscv/include/elf.h +++ b/sys/riscv/include/elf.h @@ -82,5 +82,6 @@ __ElfType(Auxinfo); #define HWCAP_ISA_C HWCAP_ISA_BIT('c') #define HWCAP_ISA_G \ (HWCAP_ISA_I | HWCAP_ISA_M | HWCAP_ISA_A | HWCAP_ISA_F | HWCAP_ISA_D) +#define HWCAP_ISA_B HWCAP_ISA_BIT('b') #endif /* !_MACHINE_ELF_H_ */ diff --git a/sys/riscv/riscv/identcpu.c b/sys/riscv/riscv/identcpu.c index c681edfff47b..203edb3689bc 100644 --- a/sys/riscv/riscv/identcpu.c +++ b/sys/riscv/riscv/identcpu.c @@ -245,6 +245,7 @@ parse_riscv_isa(struct cpu_desc *desc, char *isa, int len) while (i < len) { switch(isa[i]) { case 'a': + case 'b': case 'c': case 'd': case 'f':