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: 1182304 Return-Path: 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=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="klp90sh8"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46yx6w6FP8z9sPV for ; Thu, 24 Oct 2019 03:44:40 +1100 (AEDT) Received: from localhost ([::1]:41482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNJkU-00054K-5S for incoming@patchwork.ozlabs.org; Wed, 23 Oct 2019 12:44:38 -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-Google-Smtp-Source: APXvYqzxbN6aZDZlEJMLq0+Hlytp2SLZw2cDsLx/iDL9oQLo6n0fVXF/M2YW7cyZHEaT4gvCA3mv5A== 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+incoming=patchwork.ozlabs.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 Reviewed-by: Alex Bennée