From patchwork Wed Jun 15 10:03:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1643579 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=mgg3Rof5; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LNLZ41B19z9t6h for ; Wed, 15 Jun 2022 20:06:52 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5D3B7844D6; Wed, 15 Jun 2022 12:04:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="mgg3Rof5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0FBE0844BB; Wed, 15 Jun 2022 12:04:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9AC08844B1 for ; Wed, 15 Jun 2022 12:04:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x52d.google.com with SMTP id w27so15350407edl.7 for ; Wed, 15 Jun 2022 03:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/1f9n0nd7OMxqcDbecyk8IQlRj7O/M19gnjS+/3QcqQ=; b=mgg3Rof5E0pA41r14xZ66uy3Ih2vh0UiQqO6uizuAdknf3EXRUmhdY0GHb4WNjt5mY yFqzyRNYamz8dFdf5zLTko+2qjwLIOqTAQcatIz42cAXSmjI9d0DWM04JZd5psagyC7i GVCGjiljrM9B2OKKn6DhXvR6e8zuH4vZ7dPhC0MsH7VbZSh+U8ocGKuGERvL4sS2mma1 o9ZK1uf360b5bIsWTIwMvPAWCBTKTEsLOxakYgIr/hQkHtu6bwIfxEn4aosucS+kXT1u 1dq8DxqBv4whF+fWFC3sc8/JvgoD8MQFMtN6R8Hkb3cMRo8DDn6nQHF8Ubm35R0Wv7Nn 10HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/1f9n0nd7OMxqcDbecyk8IQlRj7O/M19gnjS+/3QcqQ=; b=K5a4qukq+Ky23dkfPmJ7ax6YOhp+jcJQQ9af8siIxX76DIm/t7LGDiPJYP5AHDEheD NFFJ0VgLOH+67Xb6UeMAVRNwCMmGZ7PBaM0v4Yuyj4l8+pBvWW3HLiKN6ttmP2x/uC0E VSbfwEJk8BpvQyQGSJSeUk+QxMS96CGkE+xAAYALHaubUoe28LEh8Y/mxFPsShyeoOdN aIHdQGAb9t9jm1yM9SjqJ1VkYDEAYKt1IbKk/9W1P7heyP3VnfdWPuhV9kWaeqhmQRmK BOixYEnsdhIOxWL0ixmekUQukgbpDvl9AF5A0Do2kCMH2OMgiyWhzT0vIfPtmn3Q3G1G SF1g== X-Gm-Message-State: AOAM532KBFAbOxKkJaYGc4s5HDF5ctRh7lYust8PxUVHpRCw3TC2nqRO kifTv5cifb+3zNP+DbFUaRaO88JPBBsgUw== X-Google-Smtp-Source: ABdhPJy/yBGN8AslayX2ylzEryXFHTbEKPrcnN+uX8635omK5rpCovsYec/iw4O40F725CFcsSJiVw== X-Received: by 2002:a05:6402:42d4:b0:416:5cac:a9a0 with SMTP id i20-20020a05640242d400b004165caca9a0mr11689872edc.86.1655287471143; Wed, 15 Jun 2022 03:04:31 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id ge9-20020a170907908900b00711e60256cesm6042428ejb.196.2022.06.15.03.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 03:04:30 -0700 (PDT) From: Michal Simek X-Google-Original-From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek , Ovidiu Panait Subject: [PATCH v3 15/23] microblaze: Remove code around r20 in relocate_code() Date: Wed, 15 Jun 2022 12:03:52 +0200 Message-Id: <2a7f9cc335141928d4e1629a92ae3e3d108ed550.1655287429.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean r20 is not used that's why remove logic around it. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index f2d6d12deb73..c3d925c1d151 100644 --- a/arch/microblaze/cpu/start.S +++ b/arch/microblaze/cpu/start.S @@ -310,11 +310,6 @@ relocate_code: bneid r12, 3b addik r21. r21, 4 - /* Update pointer to GOT */ - mfs r20, rpc - addik r20, r20, _GLOBAL_OFFSET_TABLE_ + 8 - addk r20, r20, r23 - /* Flush caches to ensure consistency */ addik r5, r0, 0 addik r6, r0, XILINX_DCACHE_BYTE_SIZE