Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3505185imw; Mon, 11 Jul 2022 09:53:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1suG7+0AxslXfnyyKc1DgpSJe3pz82T4f7pVchAbuqpAQJKmDPxWZwiiE77vkxFV7vRc43d X-Received: by 2002:a05:6402:4306:b0:43a:b794:9f9f with SMTP id m6-20020a056402430600b0043ab7949f9fmr20712551edc.205.1657558418073; Mon, 11 Jul 2022 09:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657558418; cv=none; d=google.com; s=arc-20160816; b=Tjw+xViuTPhLkIuVwmWMDDpj/MKizgdib2gRErfsDuL/9sCQMohxpVY6V3oH1wDiGa Tim103A1gVpQj9ItMl7cDKfdP/Wm+OHrAb8K3cOf8jH1dj74I884sC3S7O/4WtpC1Rf3 FjXL4A0lxdamT1NcsMO78fSwo0fqc8Cl//f2EfV/7GeY1DB2S4b60dW0kyZgjk6lmUtA NcwypvEijpDHqzYMy4ek+/aJtx/7o2WyLVUEb3y5IK46+63G9uLsMAV2FcR/zAkmvL29 eZjgh3vEADloJm6LdV4yI8YUpx95fKpYa05kOMS93cia65PaomCyJ/s1wq36SVTU8thn 36pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/XYdlCxS7RGpQPL4Zx9iTA/fgQXyCfYPrXMcx2+oth8=; b=i2zSBXTD31vEGk7dkxOlD07vZk57RPa3hXKzEfOHdYLJAfGSHyhKvbdI3gO4rdfu7N Jvx8camSpZ7ZPjc+w90KiEW8ZPw/jay1uU0INvoapXeTdveR6GXd+G717HBlFIfLUPIf X6//gENmANEvFpuC1ssTq1COYapYxbGzT1bdyD8j6dL4UOgBwOwNGwyT+dxtFBDpBGgc V0GhfhM2sAvcRlQ/MVSKsR/gP4U7rg0L7B9uqZuOjj66LqdvAONeNkvkgSHbpZEv05Re g/MZk9ibY3onGNY9i8FhY5DBvWQo/V6HFftxBu5wOBE2FGGHIaSsUWU3uRi8Q20CegoQ 6QFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht16-20020a170907609000b0072b0f6f1456si13130549ejc.612.2022.07.11.09.53.13; Mon, 11 Jul 2022 09:53:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231915AbiGKQSS (ORCPT + 99 others); Mon, 11 Jul 2022 12:18:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231871AbiGKQSL (ORCPT ); Mon, 11 Jul 2022 12:18:11 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 485D47AC26 for ; Mon, 11 Jul 2022 09:18:10 -0700 (PDT) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 26BGEhJX006415; Mon, 11 Jul 2022 11:14:43 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 26BGEhND006414; Mon, 11 Jul 2022 11:14:43 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 11 Jul 2022 11:14:42 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Arnd Bergmann , Pali =?iso-8859-1?Q?Roh=E1r?= , Michael Ellerman , linuxppc-dev , Linux Kernel Mailing List Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler Message-ID: <20220711161442.GD25951@gate.crashing.org> References: <20220524093939.30927-1-pali@kernel.org> <20220702094405.tp7eo4df7fjvn2ng@pali> <8D562851-304F-4153-9194-426CC22B7FF2@ellerman.id.au> <20220704103951.nm4m4kpgnus3ucqo@pali> <20220708171227.74nbcgsk63y4bdna@pali> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 09, 2022 at 09:26:11AM +0000, Christophe Leroy wrote: > If I select the GENERIC_CPU or e5500 (with altivec) I get: > > CC arch/powerpc/kernel/irq.o > {standard input}: Assembler messages: > {standard input}:3535: Error: unrecognized opcode: `wrteei' > {standard input}:5608: Error: unrecognized opcode: `wrteei' What -mcpu= did it use here? wrteei is not a PowerPC insn (it is BookE, instead), so it is not recognised without an appropriate -mcpu=. > If I select the e5500 (without altivec) or e6500 I get: > > CC arch/powerpc/kernel/io.o > {standard input}: Assembler messages: > {standard input}:381: Error: unrecognized opcode: `eieio' Same question. eieio is a base PowerPC instruction, so this one is "interesting" :-) Segher