From patchwork Wed Oct 23 15:44:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 177328 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp980276ill; Wed, 23 Oct 2019 09:43:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQkpoyrr9PSE3eTARob8ez86TFp7vBtgkh/Qqv6BQexrMHk97uQODdX9HkVt/n2yC0rHxY X-Received: by 2002:a37:9482:: with SMTP id w124mr9403074qkd.313.1571849039412; Wed, 23 Oct 2019 09:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571849039; cv=none; d=google.com; s=arc-20160816; b=ciGWfYeRuOfKuwUFhoBNeracknnz0MlD4DPSiMryfyjCBow04GQfdDM/t5jLSSKW5l jU4lSMkR1A71ijvmvwqiA2pbPO+PWBfhxoxThZfzZn7Ef47mRN74aLHDBYbIkM62+7nM 3BW2tTWoYget5YQZQvV8j4h6dHLW6NUGnrCAYhlBtTguT/s7chGXpXHrCLw3Q0cgMqjd 6A09q8sJByZhhy6jfZaK5KOP5z/RHfnIKX2eZ90M5fx0VjCZooQOVm5f7Y/QI6FiFFNH tvxmYup3AldkW7z7G5pXW/BUcCSVoSz2t0SrsxoIXJs/nYAaWMvEbOrGBq2vlarPVmgZ q5Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=arQzfT2uCXGahW1X98UJ8FBF2p5Ol8/LlVoSzE8ixjU=; b=sPMpjJHgAzF653L54OEc9+azjmE5o34HLzsbulmOJsjdBspV6jL5pG2K6eXZbvoZnW Ja0mS/C+QVi3UkWg/oG7QZChgt/jyUuk+x2VSPBPPkokr9XRDxc9dnWloDC79Y5Mtw/u ue3OBwKG1M60VADKtkhKYWmMekmi/O/7IEkJe3aN5Hbcv1N7DosgGFBShJ9e/54jhXr9 DNuxkiYk9VoJHDW61p6ABrksu+DWjMEfp+S33sY7SQ206IXkVsdUeVf4WX2rlYc4X5Oo brZQQSgvGnrt90sO8O63mMh8EL5ZyJyt+m8eoJqBBu6rTBCAYDNCyRXENXyFIaI9o5RA +G8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=klp90sh8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id cx11si19471721qvb.25.2019.10.23.09.43.59 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2019 09:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=klp90sh8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNJjq-00054K-6I for patch@linaro.org; Wed, 23 Oct 2019 12:43:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42475) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNIoz-0004bu-9Q for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:45:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNIox-0005Nf-3t for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:45:12 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:34105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNIov-0005Ie-5U for qemu-devel@nongnu.org; Wed, 23 Oct 2019 11:45:10 -0400 Received: by mail-qt1-x831.google.com with SMTP id e14so13183956qto.1 for ; Wed, 23 Oct 2019 08:45:08 -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:mime-version :content-transfer-encoding; bh=arQzfT2uCXGahW1X98UJ8FBF2p5Ol8/LlVoSzE8ixjU=; b=klp90sh8LYUwoVCPUMwBlKI+H+Afh3RjJb1RGhqI+LjlZQ7AglVFEklrUfy2TlqjTF wVbX+eArDADv0ICyZcx2giCc1uOf83zkmTikeTy/I7f3dBu296Zxrq896ueojRnBlsAC RKx8iH0dD/LPnE6TnAD6o6jJz37ckknQpVaOw6zwcb2tfW+SLGYA5fhb6oyCov4JbDw+ lh5GUsvSuhQmwsmbrOBbhH/IKGqH2qZ3hwtiSeN4jwCDluf5hE49Lmw4ogMzNuPtGZ46 TPosF/3iwBBZEv9scAOz4u6LAxxMy3oYfUwld9WIvRnt5hHSMvUIVde2gx0arBtzKj5V DARA== 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:mime-version :content-transfer-encoding; bh=arQzfT2uCXGahW1X98UJ8FBF2p5Ol8/LlVoSzE8ixjU=; b=S3ORpSOe7arRp3jH6cepG4q92SM2f2DFr1OsV/dN52y5rxZifRKnMkygUp9kQF3GsX 46inGxFI7GLtxuF+pdi9KJ5ebtaEzmcwIEwsFf+VhHFG1nyHUC7T2iqsEmPyCXD0pBLF YfLtIoQ6pRgCMl0pSXxHEFHhiVOe43gU2Hqbu/6Owp9G1ZXUtgxoN7y59BM+HiJCYUoF 4vB+S0vjYtxuO77z5iCcqHtsXo4gPNSgzE3W+xQ0DxumRUW1JrA6akFkwiS+5tgPSd+I FGmBNoGGCuCIEbZwq8hSEfr94rLS31oPs3SznT3ATJpXRIWMYWG5gksu71W4asSuZbS5 sFiQ== X-Gm-Message-State: APjAAAWhHSrDGofGzljCqM9ej0P1nWfQIlRCQQZZnfDiUXMIAZxQtTts CrZa6b3brXghKt0gIkHEE7Mx7FTDC9w= X-Received: by 2002:ad4:4789:: with SMTP id z9mr1667209qvy.109.1571845507393; Wed, 23 Oct 2019 08:45:07 -0700 (PDT) Received: from localhost.localdomain (rrcs-172-254-253-50.nyc.biz.rr.com. [172.254.253.50]) by smtp.gmail.com with ESMTPSA id o1sm2456272qtb.82.2019.10.23.08.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 08:45:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 0/7] exec: Improve code for TARGET_PAGE_BITS_VARY Date: Wed, 23 Oct 2019 11:44:58 -0400 Message-Id: <20191023154505.30521-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::831 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes since v1: * Replace my patch for TARGET_PAGE_ALIGN with Wei Yang's. * Detect __attribute__((alias)) support in configure. If unsupported, as for Apple Xcode9, use preprocessor trickery. Passes travis build tests for xcode9. Link for v1: https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg04519.html r~ Richard Henderson (6): exec: Split out variable page size support to exec-vary.c configure: Detect compiler support for __attribute__((alias)) exec: Use const alias for TARGET_PAGE_BITS_VARY exec: Restrict TARGET_PAGE_BITS_VARY assert to CONFIG_DEBUG_TCG exec: Promote TARGET_PAGE_MASK to target_long exec: Cache TARGET_PAGE_MASK for TARGET_PAGE_BITS_VARY Wei Yang (1): cpu: use ROUND_UP() to define xxx_PAGE_ALIGN Makefile.target | 2 +- include/exec/cpu-all.h | 33 +++++++++---- include/qemu-common.h | 6 +++ exec-vary.c | 102 +++++++++++++++++++++++++++++++++++++++++ exec.c | 34 -------------- configure | 19 ++++++++ 6 files changed, 151 insertions(+), 45 deletions(-) create mode 100644 exec-vary.c -- 2.17.1 Reviewed-by: Alex Bennée