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 X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79F12C4320A for ; Tue, 17 Aug 2021 13:47:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5F36360F5E for ; Tue, 17 Aug 2021 13:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236635AbhHQNrp (ORCPT ); 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: stable@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