From nobody Wed Nov 5 10:40:48 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1533789001190604.2324189391273; Wed, 8 Aug 2018 21:30:01 -0700 (PDT) Received: from localhost ([::1]:47260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fncaB-0007LS-Hi for importer@patchew.org; Thu, 09 Aug 2018 00:29:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fncSs-0000ol-IL for qemu-devel@nongnu.org; Thu, 09 Aug 2018 00:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fncSq-0007Fy-6y for qemu-devel@nongnu.org; Thu, 09 Aug 2018 00:22:22 -0400 Received: from mail-pl0-x22e.google.com ([2607:f8b0:400e:c01::22e]:40274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fncSq-0007Er-03 for qemu-devel@nongnu.org; Thu, 09 Aug 2018 00:22:20 -0400 Received: by mail-pl0-x22e.google.com with SMTP id s17-v6so1975141plp.7 for ; Wed, 08 Aug 2018 21:22:19 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-8-179.tukw.qwest.net. [97.113.8.179]) by smtp.gmail.com with ESMTPSA id m30-v6sm7355799pff.121.2018.08.08.21.22.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Aug 2018 21:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZhqStPaobVNOlrpd9bhYKZkFUowiLMw3HFHpD3qTb9Q=; b=eUb7FZ5u6jwRd/Ax8cU+2v9tW9toRSfHbht2Gjp4rH5GAsjOI73GDkSMxdcZj80Xg+ jr+cksN4x+yG39fon7caTPz60vu3fUlwVPsY5+a6QbuF+zL5TquuMLOE7a46VNOEAvai gMmXrKKekt8mB7gTu7A7qDKrXLdt4m4eBexNo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZhqStPaobVNOlrpd9bhYKZkFUowiLMw3HFHpD3qTb9Q=; b=MSuo8A2JVusRDTOAqMIz4TKX+XP6oC6n90B+4ov5yxngvOig9RJzMNQxr54pBVfEpK KliKY9lEIVyRdLKZOMz5xCwRA2O9dNEN9ZNtL/W//isbKCLDxYgVYEj9gHKjSz8ScOxZ MCLT+H1BmqZzgfClxuPjD/9dACuB1HThOAbUVGLZpB3/a7V7PIh7hhBbMrB4BbgZ5UUz av+cAzaj+BYuwGCLtsn3sB61b09g+f6YIsD5FhrEfjvzBmfuZBu5GZL9c1Mb66gXB5We zn5MiUcDZfZeP71s/rDSWZtdqEA0UX/gE44C3PvR2cNguvd4DaCFS3MsS+HxAdxr23Z1 C+zQ== X-Gm-Message-State: AOUpUlE59xjshddut8QPxlpKlb4f/Ne1dMd8naf3ZSqIi4q17QObw+kN CS+2H2R1yXlw6aZhBmR+0sYo+kcKRww= X-Google-Smtp-Source: AA+uWPz6erkKnoYF3eIwEmwG5O3euvPofgktx2vtWvTfLa4AMaamniDBlKQKwKKLWKnKP6LBY8UZXw== X-Received: by 2002:a17:902:8a90:: with SMTP id p16-v6mr521184plo.106.1533788538763; Wed, 08 Aug 2018 21:22:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 8 Aug 2018 21:21:53 -0700 Message-Id: <20180809042206.15726-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180809042206.15726-1-richard.henderson@linaro.org> References: <20180809042206.15726-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22e Subject: [Qemu-devel] [PATCH 07/20] target/arm: Fix is_a64 for user-only X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent.desnogues@gmail.com, peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Saves about 8k code size in qemu-aarch64. Signed-off-by: Richard Henderson --- target/arm/cpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index aedaf2631e..ed51a2f5aa 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -918,7 +918,15 @@ void aarch64_sync_64_to_32(CPUARMState *env); =20 static inline bool is_a64(CPUARMState *env) { +#ifdef CONFIG_USER_ONLY +# ifdef TARGET_AARCH64 + return true; +# else + return false; +# endif +#else return env->aarch64; +#endif } =20 /* you can call this signal handler from your SIGBUS and SIGSEGV --=20 2.17.1