Message ID | 20210325073150.12934-2-xypron.glpk@gmx.de |
---|---|
State | Accepted |
Commit | a718e2aed52a135f7a6a8745a49e4f5bdff49ecf |
Delegated to: | Andes |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=UhGYHe2v; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F5cJS1q0Tz9sRR for <incoming@patchwork.ozlabs.org>; Thu, 25 Mar 2021 18:32:40 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51BAA827BC; Thu, 25 Mar 2021 08:32:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="UhGYHe2v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F70C805BF; Thu, 25 Mar 2021 08:32:17 +0100 (CET) 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,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9A51F805BF for <u-boot@lists.denx.de>; Thu, 25 Mar 2021 08:32:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616657519; bh=3oGcfGSdef4J60NubQLiOY/PP3tq5IHSuEfY1TIOqlM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UhGYHe2v1oQDerDCqhQgETEvI1HBdVabGUTY6hskYMRfbDcz2dUnJ648gd2jNtbny xy23QgSf6fVgeh4q4mDNs9G+2+KA+8gqBTyZzsaVveWehSIoXSKRYY61ex1SkNcYB+ MZU8Tfxk+g/v6PhbwbAt2qWrGPXMODN3Z8uA/yX8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([62.143.247.63]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N63Vi-1ljH3n16rI-016P9F; Thu, 25 Mar 2021 08:31:59 +0100 From: Heinrich Schuchardt <xypron.glpk@gmx.de> To: Rick Chen <rick@andestech.com> Cc: Sean Anderson <seanga2@gmail.com>, Leo Yu-Chi Liang <ycliang@andestech.com>, u-boot@lists.denx.de, Alexander Graf <agraf@csgraf.de>, Andreas Schwab <schwab@linux-m68k.org>, Heinrich Schuchardt <xypron.glpk@gmx.de> Subject: [PATCH v4 1/2] riscv: simplify longjmp Date: Thu, 25 Mar 2021 08:31:49 +0100 Message-Id: <20210325073150.12934-2-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210325073150.12934-1-xypron.glpk@gmx.de> References: <20210325073150.12934-1-xypron.glpk@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:iSUf6TV0Rjuc65kvkqSNAdaw69flq3EaSTi/bao060px7z5CTqQ wq3VqLn2U7VXk+IHmZynocszT9Yqf8HH9gQu5h0h5gDqwWFUvh7yk0OUwnH2nyrbYhSVUUi s9pXiTWsQaP3ypR5ouelGKTtzRPS90QrTXeq1VUVFSmcM55UBCjjnCPh6CzJeywYqj7GI45 hb30r2A7TWf9n1vOwEstg== X-UI-Out-Filterresults: notjunk:1;V03:K0:qWjaAMfO0hQ=:wfaV3jj1/NTAu9N/4S3z3o agk15EytisCrZ+2DqMlAU5kQtFUYNnuwL3FjF/WeNU7QZIvSyhuoiHFdpPW1Ops7jvyGKlPD7 Jo3a8DeTImnIVY4mi+M/U64SnM0KU5Cnzn7ootTjJ3uZBDR7o6/z+ABAAh6tR5a1jgTLBIVIz gGo2XE1LLFKSps5MsanL7AP6aUGUqfuiFpAlkL+ux+boKJocCv4X896qxPt94CPXty4OvLF30 caf5vKclDLpLW2H32jJINbOyjiDz+S0N08ADBCZiZ8HtpQDC/eVLsrFXry8uTwWAxgh+xHj0q amrp+VmzKYQpHLDsXESpKoUoozq811vK9YDqBlQYaUL6o88nZIWTU2nQ514kMjmflp57JicbW Yzd4Hs7O1bpcBl4GvaDFtM0VoWbdNpUEqti46xCdxRxJA9bEFzET3NLZmrdF9hYwe7MeBb84i e7DMpapFFpUAYM5wThJZN3KwjRJYATsBWTS+j0UvKcUQR5+245+i/+TwVdgT2AGHnRE7N9WS2 3rq2MXulDdIu5dkCMcF+Y/KKCT540H1yHHwso8H4oZWu35BZm7+x0O1mVAS+LixHIfF4n5NU/ uV/1sbADnnP/q89vqS9hTf8l6NeQFsd6Pm2PWYxgI75I3GU8vKj28tE9bpaduGLIGzEQLMGsP nCA+RmmJe/9T+pDuF3+oOGsejA7rcN5vDAQhG6keELSkndCmJZb5qOOnkQmbaVkghJb7JzCbU gST/CYIeivR7S1Wvj9zWoXd//Cq1lYMme6Sku+IkYOfmsFHG6d6RkPgNKnfTg0y6G1fWVsLSW j1jmlch57BM1qzhIk/n5f0EfLq8FrqP+bQq5IvszzsemSDzZAHR5TyNE0UpazvrYJT4ce+st0 3o863EJvtNzXMvgzOXdw== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
riscv: simplify longjmp
|
expand
|
diff --git a/arch/riscv/lib/setjmp.S b/arch/riscv/lib/setjmp.S index 72bc9241f6..99d6195827 100644 --- a/arch/riscv/lib/setjmp.S +++ b/arch/riscv/lib/setjmp.S @@ -54,12 +54,8 @@ ENTRY(longjmp) LOAD_IDX(sp, 13) /* Move the return value in place, but return 1 if passed 0. */ - beq a1, zero, longjmp_1 - mv a0, a1 - ret - - longjmp_1: - li a0, 1 + seqz a0, a1 + add a0, a0, a1 ret ENDPROC(longjmp) .popsection