From patchwork Fri Jun 24 09:53:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 70810 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp863372qgy; Fri, 24 Jun 2016 03:04:30 -0700 (PDT) X-Received: by 10.237.45.98 with SMTP id h89mr3486101qtd.81.1466762670537; Fri, 24 Jun 2016 03:04:30 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id h10si4332802qth.66.2016.06.24.03.04.30 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 24 Jun 2016 03:04:30 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGNyQ-0004MP-3c for patch@linaro.org; Fri, 24 Jun 2016 06:04:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGNnq-0000fm-4i for qemu-devel@nongnu.org; Fri, 24 Jun 2016 05:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGNno-0003IU-3v for qemu-devel@nongnu.org; Fri, 24 Jun 2016 05:53:33 -0400 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]:35390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGNnn-0003HO-SD for qemu-devel@nongnu.org; Fri, 24 Jun 2016 05:53:32 -0400 Received: by mail-lf0-x22c.google.com with SMTP id l188so111651288lfe.2 for ; Fri, 24 Jun 2016 02:53:31 -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=G2UkHt6hWyZmDgGDHGovwFAR3gLwd0vEO7gy80O2cr0=; b=jxKGx6t7UhwFARV79MoKgmvf1fJjJswNsbpyIpHeLuQXhpnmfy8ZTYF0xjDcPgzJCw 0/oEIagcWWm/F6UtREsGRpvKQzaK+Ws6LpLjOHPzKhTfAn5jKCAxxoHQO0ktQr6tN66m vAiM/1Q7iMaz62MYJL/WlP/jQvP70f3Rh7+no= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=G2UkHt6hWyZmDgGDHGovwFAR3gLwd0vEO7gy80O2cr0=; b=SBqnR3wQgOCvx38nRQHLDIXp9ovPm0Cjh//DvwXCYHaNxpMl9yR3rt9zAQH7OQ8SQe SgNqHTMbBsGe1k2WvKFVrSz3ofQiZWYUyoWlZOvV5GJOO2F8Z+ACsraTkpMl+VpaE30z mCUjPa3Mpds4tvNaVYjkg6xo66UNGFhLidrZlivKPI29a3pV9ETwgjcxEum5RIvEvhh1 IumgdUEeKOpGZ6H57d2BDPs5YLmVU5DaeNUH3nboTKevvVznFmKGEhFgsgnEJtj33mGn +fABoiG/ap/119rrqRk13JBfy0kJZi2MiGvmpaH8ZFBMqS7gbz4bBTII/COInTrdqAs+ Hzzg== X-Gm-Message-State: ALyK8tK+jv2C0Zk2Qo19I8ZxqBxIW93yMN1E69bYgiUeahfIhh5dPeAGjOhJxaYSrZU6Loz8 X-Received: by 10.25.23.215 with SMTP id 84mr1081370lfx.200.1466762010950; Fri, 24 Jun 2016 02:53:30 -0700 (PDT) Received: from beaming.home (85-76-80-69-nat.elisa-mobile.fi. [85.76.80.69]) by smtp.gmail.com with ESMTPSA id o137sm798203lfe.2.2016.06.24.02.53.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Jun 2016 02:53:29 -0700 (PDT) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 24 Jun 2016 12:53:01 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22c Subject: [Qemu-devel] [PULL 06/24] configure: Don't allow user-only targets for unknown CPU architectures 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: Peter Maydell Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Peter Maydell For the user-only targets, we need to know something about the host CPU architecture even if we are using the TCI interpreter rather than TCG. (In particular user-exec.c has code for handling signals that needs to know about that host's context structures.) Specifically forbid building the user-only targets on unknown CPU architectures, rather than allowing them to configure but then fail when building user-exec.c. This change drops supports for two configurations which were theoretically possible before: * linux-user targets on M68K hosts using TCI * linux-user targets on HPPA hosts using TCI We don't think anybody is actually trying to use these in practice, though: * interpreted TCG on a slow host CPU would be unusably slow * the m68k user-exec.c support is missing is_write detection so guest code which writes to the same page it is executing from was broken (will include any guest program using signals) * HPPA TCG backend support was dropped two and a half years ago with no complaints Signed-off-by: Peter Maydell Reviewed-by: Laurent Vivier Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- configure | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.1.4 diff --git a/configure b/configure index 6696316..dce20f0 100755 --- a/configure +++ b/configure @@ -1216,6 +1216,13 @@ esac QEMU_CFLAGS="$CPU_CFLAGS $QEMU_CFLAGS" EXTRA_CFLAGS="$CPU_CFLAGS $EXTRA_CFLAGS" +# For user-mode emulation the host arch has to be one we explicitly +# support, even if we're using TCI. +if [ "$ARCH" = "unknown" ]; then + bsd_user="no" + linux_user="no" +fi + default_target_list="" mak_wilds=""