From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B39EC433EF for ; Wed, 2 Mar 2022 22:42:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2C55583D03; Wed, 2 Mar 2022 23:41:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="WkeqFWTk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A0E7383CD6; Wed, 2 Mar 2022 23:41:39 +0100 (CET) Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 659BA83CD6 for ; Wed, 2 Mar 2022 23:41:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x832.google.com with SMTP id bt3so3124608qtb.0 for ; Wed, 02 Mar 2022 14:41:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RtfL5IM+S7Duxpj5YRqME+taKx5ElEwL2Dt5Has+K9Y=; b=WkeqFWTk81Aky8MgI+GtRetUHb2wsEHgvH5EAm/gVg2SzfKYi8EvpHJUUIqfGiJAEE +90B9TMhfhCWBMbmxz5OHnYQ7cNzM9FHCMhd/8BSIG+02nqdI+7vL9yqdnxmVz4TFRJs lymPGsxBtodBAnFUw+Tba7SWxw5MKZzNG9nAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RtfL5IM+S7Duxpj5YRqME+taKx5ElEwL2Dt5Has+K9Y=; b=CTKyNdVcmPDv1WEscC0ZvgIASH7j/gmo/9GjdLsMMbcNGghF+vAdrDyFYIpnUdzYbR LKEgR5Wbvm8Y62IkhZVN3i+VKG3kEUvHA0v7OY9bwS7c8rxUWraj4gRzTGGAlG8tD4+j Eo7WgGdPvF4dimrthY8OdH5/GhR0I9FhqQwcIofysLr6X0PuHX9UJz8gOCvXkQX0oAqv T3Wo+6T8v9i8Ltb82ouYovQYfV2R/UjlYzNl5o4tYUw8p/XZ9gHfrAC4PhTYb8KVinTk Fmqzvjpe9NCrvcZ0217Yk+iO15HcdJ3idoOCsi6IjDL2hfajtdylKSmVPPl+V6kWlwSc x/kQ== X-Gm-Message-State: AOAM53056tiEPzCPWuq2aDsb8pV+h31MYUPGT4hG5r+0Mk9MEswcEGnA +N2fcFb/m92c+ngI1/dNYIQWxQ== X-Google-Smtp-Source: ABdhPJyPme3JCflGBrmnhi5dQItmvJhWDU6PnK1NwaK391mEmZikuufYOGod1m8xACTvc4rLcmnC+A== X-Received: by 2002:a05:622a:653:b0:2de:6ffe:1408 with SMTP id a19-20020a05622a065300b002de6ffe1408mr25659938qtb.9.1646260895256; Wed, 02 Mar 2022 14:41:35 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id p12-20020a05622a048c00b002de8f67b60dsm236245qtx.58.2022.03.02.14.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 14:41:34 -0800 (PST) Date: Wed, 2 Mar 2022 17:41:32 -0500 From: Tom Rini To: Andre Przywara Cc: Simon Glass , Heinrich Schuchardt , Michael Walle , Nishanth Menon , Alison Wang , Peter Hoyes , Marek Vasut , Priyanka Jain , Priyanka Singh , Mark Kettenis , u-boot@lists.denx.de Subject: Re: [PATCH v2 5/6] armv8: Simplify switch_el macro Message-ID: <20220302224132.GY5020@bill-the-cat> References: <20220211112939.1327953-1-andre.przywara@arm.com> <20220211112939.1327953-6-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ftQmbtOmUf2cr8rB" Content-Disposition: inline In-Reply-To: <20220211112939.1327953-6-andre.przywara@arm.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --ftQmbtOmUf2cr8rB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 11, 2022 at 11:29:38AM +0000, Andre Przywara wrote: > The switch_el macro is a neat contraption to handle cases where we need > different code depending on the current exception level, but its > implementation was longer than needed. >=20 > Simplify it by doing just one comparison, then using the different > condition codes to branch to the desired target. PState.CurrentEL just > holds two bits, and since we don't care about EL0, we can use >, =3D, < to > select EL3, EL2 and EL1, respectively. >=20 > Signed-off-by: Andre Przywara Applied to u-boot/next, thanks! --=20 Tom --ftQmbtOmUf2cr8rB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmIf8pwACgkQFHw5/5Y0 tyyDVwwAq3WngAY3dr7gJ5F69/w3vVdO8Vyz7AiQtC0+2YRJ22pOwkOsd4MwapWB Dvhyvkki6jwDPX5R0xmc8HERO+kX51Cf3zgW+NL1ddcgATEvb8xrp9umtEcWbsOv 44aR6o3djALttE/K4+Vlrk6GEKk0zHTJms0/rRk62c9uS0gblKXFRMrVfqF4XD/t JtWD1LPnNbOlNX9Fp1Ebjvhbh10H4pPWl1vLBnJR18TZZ8K5nkZS7i7gbuKtBB6d HVzsvHNhxnXMftpltGqBglEeA/cQDbQLMJkxTWeScMxs90JLY5qX95LLmE94wV0m IVZ7jeBFiBIZkGzOV68rIin6AI+At12SrwNJmnqAce5X2TFdVztUjJXAoAkkcirD gdasR3XLUioU8zaZkQudFDVCfWIUGvIza+Pa/sFt8U3aljqtwxXRtpdOWYS5Q5R3 NMOE8CFp0i9Ddh6FoOJZIDbrQL6LtFZTlvkzTFVxZnLNEW9kN537bcYc/NUwbuBi eA/6sXqo =f7KC -----END PGP SIGNATURE----- --ftQmbtOmUf2cr8rB--