Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4395260imw; Tue, 12 Jul 2022 07:16:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sPgNIzPVrVGI/jo9G9jxMBb1vejBZgabOB+ORds0F6MfVuyt+drEwK06I4PHki0Jeu4zI/ X-Received: by 2002:a17:907:7f03:b0:726:2d20:ea76 with SMTP id qf3-20020a1709077f0300b007262d20ea76mr24070436ejc.586.1657635381944; Tue, 12 Jul 2022 07:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657635381; cv=none; d=google.com; s=arc-20160816; b=cqAjk39WUBHIL76nDQLLTybvMep3fuFIcN0z7gU4RQr8NTmAJ1QZs+tjw+Ig2JcpmZ bIDGJwLrolSobAWPh90A3o7ko6AnOIcTaqDYM2mBli80SxJ5yJ6+zurKdPfTQIJEDQvi hBbLIy+O/FeVIIfrIkTrsP/oRn0574cL9uwjMh6lEkOCBCBkjOZiyJPfruxAJ+HaJ+pb unSQb3fKXC1r1dopVy7EyW28d1wUj5C3/zRdRPUgIagMVHQZECXMbZCfp2lxQgP7DQ2s xNKe8582Ltd+m7hY5YKtnfATwSSPNx4XWMBgazTZ/1cgKv/W3h1cLNHCzzQdmGQRuM4W rkfQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GwXBuMUFJvYmPioXEkq1tzWnuvT/uC7flR0+BxOdUJ8=; b=VLZxcGuMG06KgzAhjB3JIeVqv1OF9YQw49I44K0PA3bSNsMmF6g6VbsRGlf0D/SEPm 4vaHbbwS12n4/wrouXcaltKj6BQc6MoNvQj5M1bVRQTK/CfvlJR5EfwcoIe/k7vuq+Kn 7JxbMilX9utOoQEeF4GM/hgTRCn5vDjaItgenQqCQhY6faly74dJgDR0EAupt0bJL6fT aLHBooftjLvmT3lqXAxvD1543cEL9p0W2prh80mJ4v00f5+d54wIclUuzVU4+UeU45yc dO6xWizeZPgnfQBM/eGxqX4gt7ADchJr5FEtCIFw3WS2iBWwOJWJvO/8+MKum4c9A/gX fwDg== 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 di6-20020a170906730600b0072b7ec493b5si2900736ejc.563.2022.07.12.07.15.56; Tue, 12 Jul 2022 07:16:21 -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 S229789AbiGLOOh (ORCPT + 99 others); Tue, 12 Jul 2022 10:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbiGLOO2 (ORCPT ); Tue, 12 Jul 2022 10:14:28 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6B1033A0B for ; Tue, 12 Jul 2022 07:14:23 -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 26CEB93o025896; Tue, 12 Jul 2022 09:11:09 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 26CEB7M3025895; Tue, 12 Jul 2022 09:11:07 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 12 Jul 2022 09:11:07 -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: <20220712141107.GM25951@gate.crashing.org> References: <8D562851-304F-4153-9194-426CC22B7FF2@ellerman.id.au> <20220704103951.nm4m4kpgnus3ucqo@pali> <20220708171227.74nbcgsk63y4bdna@pali> <20220711161442.GD25951@gate.crashing.org> <2552726a-cca4-ecd4-6fca-4f73bbf7942e@csgroup.eu> <20220711214840.GJ25951@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Tue, Jul 12, 2022 at 09:22:12AM +0000, Christophe Leroy wrote: > Le 11/07/2022 ? 23:48, Segher Boessenkool a ?crit?: > > I believe the eieio instruction is disabled on some e500 models, because > > it does not work correctly, so EIEIO_EN=1 cannot work, something like > > that? > > Don't know. > > It is also disabled on 405 and 440. BookE does not have the eieio insn. Instead, it reuses the same opcode for mbar, which has similar but different semantics. e500 has that EIEIO_EN thing which makes the insn behave like eieio. > That's new with GCC 12. Yup. In the past we used -many, but that just hides problems in the best case, and causes more problems itself :-( There are many mnemonics that cause a different instruction to be emitted on different targets, and that causes a lot of wasted time trying to find and fix the problems this causes. If you hit any remaining problems related to this, please let me know! Segher