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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E164C43334 for ; Mon, 11 Jul 2022 16:17:33 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4LhTYl4k16z3c6q for ; Tue, 12 Jul 2022 02:17:31 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.crashing.org (client-ip=63.228.1.57; helo=gate.crashing.org; envelope-from=segher@kernel.crashing.org; receiver=) Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lists.ozlabs.org (Postfix) with ESMTP id 4LhTYK0fj9z30Bm for ; Tue, 12 Jul 2022 02:17:07 +1000 (AEST) 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 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-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Ellerman , linuxppc-dev , Pali =?iso-8859-1?Q?Roh=E1r?= , Linux Kernel Mailing List , Arnd Bergmann Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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