From nobody Sun Jun 02 16:37:44 2024 X-Original-To: freebsd-riscv@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 4VsjFw58xFz5N2Mt for ; Sun, 02 Jun 2024 16:37:56 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsjFv2mKrz4KTw; Sun, 2 Jun 2024 16:37:55 +0000 (UTC) (envelope-from tuexen@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:1c07:30e1:d10:75ea]) (Authenticated sender: macmic) by drew.franken.de (Postfix) with ESMTPSA id D9498721E2806; Sun, 2 Jun 2024 18:37:44 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Detecting the Zbb extension on riscv64 From: tuexen@freebsd.org In-Reply-To: Date: Sun, 2 Jun 2024 18:37:44 +0200 Cc: freebsd-riscv@freebsd.org, Mitchell Horne , strajabot@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <232F8595-5C7A-4ABD-961D-4779CED5A5D6@freebsd.org> References: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> To: Robert Clausecker X-Mailer: Apple Mail (2.3774.600.62) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:2001:638::/32, country:DE] X-Rspamd-Queue-Id: 4VsjFv2mKrz4KTw > On 2. Jun 2024, at 15:42, Robert Clausecker wrote: >=20 > Hi Michael, >=20 > Am Sun, Jun 02, 2024 at 03:05:09PM +0200 schrieb tuexen@freebsd.org: >>> Zbb is supported by the SiFive unmatched board for example. >> just double checking: >> According to >> = https://sifive.cdn.prismic.io/sifive/d0556df9-55c6-47a8-b0f2-4b1521546543_= hifive-unmatched-datasheet.pdf >> the processor supports RV64GC (RV64IMAFDC). I don't see a B there. >> So does it actually support Zbb? What about Zbr? >=20 > The board is based on the SiFive FU740-C000 SoC, which uses > a quad-core U74 CPU. Reading the [U74 Core Complex Manual], > we find that it supports the Zba and Zbb instruction set > extensions. >=20 > [U74 Core Complex Manual]: = https://starfivetech.com/uploads/u74_core_complex_manual_21G1.pdf Thanks for the pointer. Zbr is not mentioned there... >=20 > Though on the other hand, if I actually try to execute a program > using the CTZ instruction, I get a SIGILL... what's going on here? I don't know. Best regards Michael >=20 > Yours, > Robert Clausecker >=20 > --=20 > () ascii ribbon campaign - for an encoding-agnostic world > /\ - against html email - against proprietary attachments >=20