From nobody Sun Jun 02 19:01:18 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 4VsmRb72cvz5JmLx for ; Sun, 02 Jun 2024 19:01:31 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsmRb5SLmz4YlC for ; Sun, 2 Jun 2024 19:01:31 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-35dbfe31905so3691403f8f.2 for ; Sun, 02 Jun 2024 12:01:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717354890; x=1717959690; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yfUJZO75DOqImzw0xb8u+IK+rDyFIShtg5YDXLgJx/E=; b=DdB9HZxxuMyeFIBFaB1thCqV5nHcJ4MCZnr0dNaA3U5aguq1+BHtVIvxcdKpU6/AGS IfeqU6UrOx/vBSub54hHaO/2jsaqETz+jlc9NhbfMCW3vb7Nu/ADJjh+TgAUCAyIzk4x SL91ihJ2bdjfbYmyi7gfmvaLTDZgj6RT/fnRfRaTFWsud1JFkHzbQvw1euUFiF3gmeUv UhN3Ov7cU6g88Nik4H1uY1BIefaB+9uNtw4ac+ANb5zBu/8b+6P4hXElLB20Sh1ek5Wy pLJIvHWGGydL4eWUqlfcRM/nBEQRkzp2gxa+fnHrbuXS2ntObBTf01pgBLWpSDX3tZME RaBA== X-Forwarded-Encrypted: i=1; AJvYcCXyjIYfPVxbJ+LsM8vlmSlOJtJ3WlX8qg79VTMAhNcNX4heiNhQCpeUlwMoK6yURFYdIdaEcj/uKX4+n5s6eghaSyJUUMTW2c+d X-Gm-Message-State: AOJu0YyP1Uvg+UQEsaUFFA2uv2eZam+7OVGP37fyvZea74wWRLcAv98x 1tKDht2MQVwY4P5/ialHvXxbVAFnoFHNKzjnR4iXkNYV/0KYFyLtHr4pNWv/zwE= X-Google-Smtp-Source: AGHT+IEbR4RMNmHUqKDtD2uHiCo8TljA/yIg8O1NQmE8MsNWQOzgRRlKEUNc95ENNPxepH6f/G+jZQ== X-Received: by 2002:adf:f7c4:0:b0:34e:9342:6b8 with SMTP id ffacd0b85a97d-35e0f28800emr4536809f8f.40.1717354890113; Sun, 02 Jun 2024 12:01:30 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04caf05sm6728019f8f.42.2024.06.02.12.01.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2024 12:01:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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.500.171.1.1\)) Subject: Re: Detecting the Zbb extension on riscv64 From: Jessica Clarke In-Reply-To: Date: Sun, 2 Jun 2024 20:01:18 +0100 Cc: tuexen@freebsd.org, freebsd-riscv , Mitchell Horne , strajabot@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> <232F8595-5C7A-4ABD-961D-4779CED5A5D6@freebsd.org> To: Robert Clausecker X-Mailer: Apple Mail (2.3774.500.171.1.1) 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:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4VsmRb5SLmz4YlC [Resending with the right From: so it reaches the list...] On 2 Jun 2024, at 19:33, Robert Clausecker wrote: >=20 > Hi Michael, >=20 > Am Sun, Jun 02, 2024 at 06:37:44PM +0200 schrieb tuexen@freebsd.org: >>> [U74 Core Complex Manual]: = https://starfivetech.com/uploads/u74_core_complex_manual_21G1.pdf >> Thanks for the pointer. Zbr is not mentioned there... >=20 > It's not mentioned (though the next revision mentions Zba and Zbb), = but > the instructions of Zba and Zbb are listed as being available. The U74 has evolved over many years with multiple versions. The Unmatched has a version from late 2018 (its mimpid is 0x20181004 as printed at boot) which predates Zb* ratification. You need to look at the manual for the board in question[1], not StarFive=E2=80=99s manual corresponding to their newer board and thus core revision. Jess [1] = https://sifive.cdn.prismic.io/sifive/1a82e600-1f93-4f41-b2d8-86ed8b16acba_= fu740-c000-manual-v1p6.pdf