Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1223664pxb; Tue, 17 Aug 2021 06:48:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG395KZ0+PYJcn38vM2FIXFus+DZ37nxDRBcOJQgyNXQlj3TFxNJWZqdANy65jCEPvLhbQ X-Received: by 2002:a92:cf07:: with SMTP id c7mr2427716ilo.291.1629208095714; Tue, 17 Aug 2021 06:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629208095; cv=none; d=google.com; s=arc-20160816; b=n083pNqa3aJBytYjbXmnloyRtFeUxqHdmjHDsZhvRAB1seVrieeZT0bGljoNNUfV4Y Yhef1/dIOhzAjKCKM4VziQdVqgk1FNbZbBhM7oUB6G3P/yDg+Yib7koe8/ofm4CVpBlz exZAz3cpz5BcFRIj4VzqMhEYfLzvKi668ILGjw31JWJDlofdLQYY4W7SYt58iSOexy8k 3xQz7+RcELQP3+quv2xxAoBcj4ss2/cvCfSz6SLTBI5fETpSzyxAkkIzrgWvBPWoG69G blUA2rn/R+C19R+VB5Wg23+y+BM19K8cnRkttuJDIFs3DqhHF9VA7vTwkG+Knjt4ND5Y blXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=gUidUxrNed4tas8Eq6UkBOTxksuy6ztPSm6lE6qFQgc=; b=qS0XyOqbKOdiAW0dILx+tqVFIITXbg44hgX606OyRQBlwJFmjjycao6f7Gpo1Nonc5 WT8BITin3NnXG70FcAtCHIvy7PMnZIemTeJENNj5amVjeW0U0gRoxLESOTHroAuMz4iq tgiLjVg/7+Rz1QE28XrY+RUfk3v2zDX+BgnCHqMCkOUEowjkJAfNq+Dln09m1roykYaC gcVQQy96+AFM/nXQZ/ceRUS3i2cmyWZWqssEpg+ukk16s671iImgw9JZM+IcqcrQ9+iM OYn5wn5F7jRqDnU0xGKoYyIhHXK5D2sQPC3H3NAsiJ1fIxH5T//YhWuNsflzH3aGBG1h t0cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si2522785ilf.35.2021.08.17.06.48.00; Tue, 17 Aug 2021 06:48:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237689AbhHQNrp (ORCPT + 99 others); Tue, 17 Aug 2021 09:47:45 -0400 Received: from angie.orcam.me.uk ([78.133.224.34]:33062 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235092AbhHQNrp (ORCPT ); Tue, 17 Aug 2021 09:47:45 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id EC45192009C; Tue, 17 Aug 2021 15:47:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id E657F92009B; Tue, 17 Aug 2021 15:47:10 +0200 (CEST) Date: Tue, 17 Aug 2021 15:47:10 +0200 (CEST) From: "Maciej W. Rozycki" To: Ralf Baechle cc: Sudip Mukherjee , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: build failure of mips decstation_r4k_defconfig with binutils-2_37 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Aug 2021, Ralf Baechle wrote: > > While I was testing v5.4.142-rc2 I noticed mips build of > > decstation_r4k_defconfig fails with binutils-2_37. The error is: > > > > arch/mips/dec/prom/locore.S: Assembler messages: > > arch/mips/dec/prom/locore.S:29: Error: opcode not supported on this > > processor: r4600 (mips3) `rfe' > > > > I have also reported this at https://sourceware.org/bugzilla/show_bug.cgi?id=28241 > > It would appear gas got more anal about ISA checking for the RFE instructions > which did only exist in MIPS I and II; MIPS III and later use ERET for > returning from an exception. Yes, I made such a change when I discovered the mess around coprocessor instructions in binutils earlier this year. Eighteen patches total to straighten it out. Some instructions were misassembled even, and no proper subsetting was made, so you could come with a nonsensical mixture when disassembling. And RFE was disassembled as `c0 0x10' regardless of the ISA chosen. > It should be fixable by simply putting gas into mips1 mode. Can you test > below patch? But it's missing the point, as I noted in the other message. I've been too busy with higher priority stuff to get to a proper fix right away (I thought I was the last one using the DECstation, and especially with the top of the tree binutils). Maciej