From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11939C433F5 for ; Fri, 7 Oct 2022 15:50:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6672C84EAE; Fri, 7 Oct 2022 17:50:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="DNVhGDW6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 06D5184EB4; Fri, 7 Oct 2022 17:50:11 +0200 (CEST) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4DC1C84EAC for ; Fri, 7 Oct 2022 17:50:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf31.google.com with SMTP id i12so3333068qvs.2 for ; Fri, 07 Oct 2022 08:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=11UHNwzWhzWACpCrDFu7AI2WM46gfwb1qRCNxqjf6tI=; b=DNVhGDW6pxBHCPEdLa32VUxCmNKecGTLS4935mSRERT3L2ocBdsL7gpEs58ECx/oau 1TTEeReHEAuim7WZXQx3pO61Zzg9RimqjMPWu5LOvIY6J1DiPvyRZTDeCmV9Lvn75qWC uymbNiOeBUS9DZFiJHeKpvmQQguhR+9DsZFRs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=11UHNwzWhzWACpCrDFu7AI2WM46gfwb1qRCNxqjf6tI=; b=xTx/ZuGFHWdHyNvPb3sKzLa0mosiv6VVuT/q1LvgdGD96lSy7c/MzLbN1008ukctSv WpBTVZpOshZqvaKjoKR9/4Qwf2D/U0Darvzxg464/FbnjPhOhaQezdAqGdg9+bbE1+3W Y+7mX8vi5ghgJJKlyQ/bQH4qafFVTodSKIYxpm19rpoHqWBN2hNzdurKWDs3xA24nRyo 2GIuVjhOn4t90zSEedJx/A+Odp6W0yZ7mHPS7Vh3Snsqm4Hcz3kbLkoe8rXchZNLidF+ Ag2VECsXxHI8KVC/4s+dVqWbtOZQy4aeSlxATM6N5k5hsJu65dSDXXBQs0DlNs/Mbfbf SkCA== X-Gm-Message-State: ACrzQf0FLxWS9O2RVqUUh3JS/+sOkeFHhAsQUluxN7wiYNr+wCgvOSnA qWpCRibYXRk/KA23DDN48kMfnw== X-Google-Smtp-Source: AMsMyM67+hFxJBSOwO8hxeZ1ArBaDs1lXkOr1nvLPuZYOTUhee3hAEx9xBpIfZdH6++iJ3CTqyaFow== X-Received: by 2002:a05:6214:268b:b0:4b2:b085:a987 with SMTP id gm11-20020a056214268b00b004b2b085a987mr4682454qvb.58.1665157804878; Fri, 07 Oct 2022 08:50:04 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-e4fb-bc51-aba6-f69c.res6.spectrum.com. [2603:6081:7b00:6400:e4fb:bc51:aba6:f69c]) by smtp.gmail.com with ESMTPSA id j8-20020a05620a288800b006bb2cd2f6d1sm2245645qkp.127.2022.10.07.08.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 08:50:04 -0700 (PDT) Date: Fri, 7 Oct 2022 11:50:02 -0400 From: Tom Rini To: Heinrich Schuchardt Cc: Rick Chen , Leo , Simon Glass , Alexandre Ghiti , Aurelien Jarno , u-boot@lists.denx.de, Bin Meng , Heiko Stuebner , Christian Stewart Subject: Re: [PATCH v4 3/3] riscv: Fix build against binutils 2.38 Message-ID: <20221007155002.GP3044094@bill-the-cat> References: <20221003160754.6991-1-heinrich.schuchardt@canonical.com> <20221003160754.6991-4-heinrich.schuchardt@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cKvS7/CvXni2hYKY" Content-Disposition: inline In-Reply-To: <20221003160754.6991-4-heinrich.schuchardt@canonical.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --cKvS7/CvXni2hYKY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 03, 2022 at 06:07:54PM +0200, Heinrich Schuchardt wrote: > From: Alexandre Ghiti >=20 > The following description is copied from the equivalent patch for the > Linux Kernel proposed by Aurelien Jarno: >=20 > >From version 2.38, binutils default to ISA spec version 20191213. This > means that the csr read/write (csrr*/csrw*) instructions and fence.i > instruction has separated from the `I` extension, become two standalone > extensions: Zicsr and Zifencei. As the kernel uses those instruction, > this causes the following build failure: >=20 > arch/riscv/cpu/mtrap.S: Assembler messages: > arch/riscv/cpu/mtrap.S:65: Error: unrecognized opcode `csrr a0,scause' > arch/riscv/cpu/mtrap.S:66: Error: unrecognized opcode `csrr a1,sepc' > arch/riscv/cpu/mtrap.S:67: Error: unrecognized opcode `csrr a2,stval' > arch/riscv/cpu/mtrap.S:70: Error: unrecognized opcode `csrw sepc,a0' >=20 > Signed-off-by: Alexandre Ghiti > Reviewed-by: Bin Meng > Tested-by: Heinrich Schuchardt > Tested-by: Heiko Stuebner > Tested-by: Christian Stewart > Reviewed-by: Rick Chen Applied to u-boot/master, thanks! --=20 Tom --cKvS7/CvXni2hYKY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmNASqoACgkQFHw5/5Y0 tyzA+wv+L5epWVFNFJOQGdWQfz5p2WipUd8TFbom8kMUyBvuvfA8AcUdI03HdaIN WP3J+UKQ55x75uUhBcqA8Xsf6hmLX/gv2MW4H/csoqhwhdTnkUx7VPPfaHT32uQ0 j3UBMqIL2yyY3IcjZp6/wuxlqFIrzE7omiB0Q+9oa74EupdW3s5lprbkCZPwZ8O4 e2kSlot7ffutTn50rHlq2GTj5E3Qim8FMviXwT8HB9buFv2dkCp8M4PI2uqHxeJ8 Z53o0WzSUmn/kRxrZFpFVmkZuFYyehWIHZZ1Q5xV5s0QxQOmB0/TUCN/cmAEf16Z Q+pDAmF5E93MSS6WG6AlVGx8CDvcEkiqRgEuDJkHT9GKN8K0OgJOqo/ymicPBgTF H+xcwGZ6lDLKQUZG0HwPkJMLxoq04JvWFNg9fd6zoQTtkor2+EHEahTP26+vcdbW JeHRuB8G3LtD1NPGVl+9uSXbYFH+cPeAW//F3xDTWy/EjzDxMGyT8QVmLcIs2Dne Tpr+zLC9 =C2Gr -----END PGP SIGNATURE----- --cKvS7/CvXni2hYKY--