X-Received: by 2002:a05:6a00:a8b:b0:4e1:52db:9e5c with SMTP id b11-20020a056a000a8b00b004e152db9e5cmr344291pfl.38.1645630601732; Wed, 23 Feb 2022 07:36:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645630601; cv=none; d=google.com; s=arc-20160816; b=kItTmsLfi/FhlJ+eisVameI1EzNOdFUMBjd06J6EwfkBSQ8obTqTEyk/ToxG2DNLS1 9jHXPrxlSiL/cfPQxesky3g1jDcwB7TxB9Ma+8+BaYeCjKG7Aoj4BGKC06G6/mn1SJ2A oZwIAfAsai/qZYAB2ze/0TGTKZqIcJZ+C8alDyjGc60RDuCKWgpUqocdKJWH8aiuxTAz 7A6P8LFIUNm38gTAGnv9K8h6OiakWKYKLp+lNqGHMrP+S01jKp/anAkSVdHMeuJwaW57 S/mssUaEmFVV0UaLtjfrLGR7UPIDLsSVxcLKx5gAzvClZIvY6BZasHGBFk4AO8Z23wn7 3R8w== 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=ezjcAIAkUTC1A+2iN+J8LbzytrKA0KTj+cJ/Ovei4DY=; b=AFQ7/mLf+HTM3DPtYbuo50H3DaJanTlQo2/6jJHmFoQoG28vW6egrr0ITeURsVVIJq Es47N6h8WfD8oHbtDAuizqsm9mU+c5+rVvuXIziUmUv64TOxqeYt6A1sv2gRHPCwROXB 4sDUm3P/Is5eVC/dvNGI5pXT9ZQMLDNm5pTy6hvgd0lxZ/FKj+uTSwUoENbaDhtp9Hd8 GB9Ho0bnwmhCQaP+2vXSnosWmUW4sEptImaslxjmnya4bHI2DnTdJPBxFIyVOMdvJjJY /ESqIX1/2PUwKWoaWz/a2On+kyKIKiJY5fHG8qUg0ONhNRHEFmsjgzO0PdWxA6qjPXBd Bjfg== 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 j16si4329994plh.489.2022.02.23.07.36.22; Wed, 23 Feb 2022 07:36:41 -0800 (PST) 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 S241866AbiBWPb4 (ORCPT + 99 others); Wed, 23 Feb 2022 10:31:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232424AbiBWPbz (ORCPT ); Wed, 23 Feb 2022 10:31:55 -0500 X-Greylist: delayed 313 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 23 Feb 2022 07:31:26 PST Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6DFF657AB; Wed, 23 Feb 2022 07:31:26 -0800 (PST) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 21NFRJFj001983; Wed, 23 Feb 2022 09:27:19 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 21NFRJU4001982; Wed, 23 Feb 2022 09:27:19 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 23 Feb 2022 09:27:19 -0600 From: Segher Boessenkool To: Anders Roxell Cc: mpe@ellerman.id.au, Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 3/3] powerpc: lib: sstep: fix build errors Message-ID: <20220223152719.GF614@gate.crashing.org> References: <20220223135820.2252470-1-anders.roxell@linaro.org> <20220223135820.2252470-3-anders.roxell@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220223135820.2252470-3-anders.roxell@linaro.org> 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 Wed, Feb 23, 2022 at 02:58:20PM +0100, Anders Roxell wrote: > Building tinyconfig with gcc (Debian 11.2.0-16) and assembler (Debian > 2.37.90.20220207) the following build error shows up: > > {standard input}: Assembler messages: > {standard input}:10576: Error: unrecognized opcode: `stbcx.' > {standard input}:10680: Error: unrecognized opcode: `lharx' > {standard input}:10694: Error: unrecognized opcode: `lbarx' > > Rework to add assembler directives [1] around the instruction. The > problem with this might be that we can trick a power6 into > single-stepping through an stbcx. for instance, and it will execute that > in kernel mode. > > [1] https://sourceware.org/binutils/docs/as/PowerPC_002dPseudo.html#PowerPC_002dPseudo Wow, no wonder you think you need quotes after reading that. I'll try to get that fixed. Reviewed-by: Segher Boessenkool Segher