Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2156547pxb; Fri, 25 Mar 2022 12:05:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWlz8oRxkOT/tljDaMFtn5hpm9AAjDnGk7zoMujIEYxOy7JmTZUwkSZvDHpqoTVEKLnd8X X-Received: by 2002:a17:90a:1d04:b0:1bc:98ca:5e6f with SMTP id c4-20020a17090a1d0400b001bc98ca5e6fmr27184797pjd.32.1648235156256; Fri, 25 Mar 2022 12:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648235156; cv=none; d=google.com; s=arc-20160816; b=W79dVUsDdcomzhW7iCwJZ7i8MhZd0/Z/P1S8YO+B7bxgkg7mRufJUdQBpEvYgL+Q9G jhiARAmt0sm9HYUMJ+N2a26IFNGthMX74sEl65Nkb8tl0u4enARMPLpiK4k260xDAxHe OR0BAfDUQ4PgrwvR+QvvBA8KpRGMkOWwKNTbdmImrTOTEVe+xMypVqfYCbf18cRVYlXd DtyzVkjo/XeQDBon82/RQ3PsRXw67EOW9XDvXj/BH3LrMly0bVyxJEXbVMaXZrWGdCP3 TohN6ncFwrSCalLU7D/g8IxXP7cH9UN3eFmVYFEcsSd8cQKe8ErgUwtdjFmOtkqkN4rK 8qfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=c9OmGMs7S0kldzOT3ULRdvr8+YxI3dE3gKuISIbVWWo=; b=yre2pKUm2D4M/kOyK6gNedNLJg2FiLbYbmYI+CqDAa3Gegk+7e/0ygFLfnhEoBiohE DRHbSfeN9q73cUqDf/Gj7Sg9jesP5FLSIH3vK3YNVGP7fM3BoaslcO+8nrSPOF7po/sP xuWJCBcGLM4uuzFwonWlnF4NU3LZjOPeKBXV4Is1Oa8LSv6kpV+g2jl3LR88AgR/PGTL HhAqSAugrdixlYLs3FcT6uN3N4h+bo1kScbuh9ar4gI9RrFtMcOIUh7OFx6tAxbXL1uP MP0DCCRFgmH73wmR6kElBJ3gscs+/6Mm1RY/K2SjL4+WvwL57b+Ncf4+5XW7b5tLlbn/ digA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q3-20020a63ae03000000b003816043ef09si3245954pgf.254.2022.03.25.12.05.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:05:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0B300208C2B; Fri, 25 Mar 2022 11:16:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351033AbiCXOe2 (ORCPT + 99 others); Thu, 24 Mar 2022 10:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350905AbiCXOd0 (ORCPT ); Thu, 24 Mar 2022 10:33:26 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A823DAC900 for ; Thu, 24 Mar 2022 07:31:54 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4KPSMK2d9lz9sTt; Thu, 24 Mar 2022 15:31:09 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gkadQe_OGiUn; Thu, 24 Mar 2022 15:31:09 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4KPSLz0S8Gz9sV0; Thu, 24 Mar 2022 15:30:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EE3088B763; Thu, 24 Mar 2022 15:30:50 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id UUs8ZWDRuTvz; Thu, 24 Mar 2022 15:30:50 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.203.77]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F17998B7A0; Thu, 24 Mar 2022 15:30:49 +0100 (CET) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 22OEUiXW1811756 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 24 Mar 2022 15:30:44 +0100 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 22OEUixv1811753; Thu, 24 Mar 2022 15:30:44 +0100 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: "Naveen N . Rao" , Steven Rostedt , Ingo Molnar , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH v1 19/22] powerpc/inst: Remove PPC_INST_BRANCH Date: Thu, 24 Mar 2022 15:30:09 +0100 Message-Id: <43a4ee9fd77f774fa1e9b72a2fc674fc8f084fed.1648131740.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1648132152; l=1716; s=20211009; h=from:subject:message-id; bh=reTiO1OPvuqXdGLn3x7Xk8PpudfBNZlji7IfAzSFmik=; b=YizvpT7xNAy/R0PmHc8ZrS4TX2jZyTgAdWk4r5Ql5brRoG3FESq4bjF0VxUxMpSc/NVDa27igWuW Mp5vGL6pBfJR9k5SgxBFC+q5CYtI2FQHCg3ddj8iz/jxKKhkvt+J X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Convert last users of PPC_INST_BRANCH to PPC_RAW_BRANCH() And remove PPC_INST_BRANCH. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc-opcode.h | 3 +-- arch/powerpc/lib/feature-fixups.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 281754aca0a3..ada8fe17b199 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h @@ -290,7 +290,6 @@ #define PPC_INST_ADDIS 0x3c000000 #define PPC_INST_ADD 0x7c000214 #define PPC_INST_DIVD 0x7c0003d2 -#define PPC_INST_BRANCH 0x48000000 #define PPC_INST_BL 0x48000001 #define PPC_INST_BRANCH_COND 0x40800000 @@ -573,7 +572,7 @@ #define PPC_RAW_MTSPR(spr, d) (0x7c0003a6 | ___PPC_RS(d) | __PPC_SPR(spr)) #define PPC_RAW_EIEIO() (0x7c0006ac) -#define PPC_RAW_BRANCH(addr) (PPC_INST_BRANCH | ((addr) & 0x03fffffc)) +#define PPC_RAW_BRANCH(offset) (0x48000000 | ((offset) & PPC_INST_OFFSET24_MASK)) #define PPC_RAW_BL(offset) (0x48000001 | ((offset) & PPC_INST_OFFSET24_MASK)) /* Deal with instructions that older assemblers aren't aware of */ diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c index 343a78826035..993d3f31832a 100644 --- a/arch/powerpc/lib/feature-fixups.c +++ b/arch/powerpc/lib/feature-fixups.c @@ -451,7 +451,7 @@ static int __do_rfi_flush_fixups(void *data) if (types & L1D_FLUSH_FALLBACK) /* b .+16 to fallback flush */ - instrs[0] = PPC_INST_BRANCH | 16; + instrs[0] = PPC_RAW_BRANCH(16); i = 0; if (types & L1D_FLUSH_ORI) { -- 2.35.1