From patchwork Thu Mar 2 19:53:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 94805 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp323520qgd; Thu, 2 Mar 2017 11:56:35 -0800 (PST) X-Received: by 10.233.235.132 with SMTP id b126mr18206067qkg.262.1488484595465; Thu, 02 Mar 2017 11:56:35 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z46si7723732qtg.20.2017.03.02.11.56.35 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 02 Mar 2017 11:56:35 -0800 (PST) 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 sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjWq1-0001Eb-6v for patch@linaro.org; Thu, 02 Mar 2017 14:56:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjWnG-0007xD-O1 for qemu-devel@nongnu.org; Thu, 02 Mar 2017 14:53:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjWnF-0002T2-F9 for qemu-devel@nongnu.org; Thu, 02 Mar 2017 14:53:42 -0500 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:37536) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjWnF-0002Sh-8O for qemu-devel@nongnu.org; Thu, 02 Mar 2017 14:53:41 -0500 Received: by mail-wm0-x235.google.com with SMTP id n11so132165wma.0 for ; Thu, 02 Mar 2017 11:53:41 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=HBbLqHvQC5yHtS/+IDR28AnQ1+6F5Z4yhDyaU3w2t3M=; b=SjXqhkz+mmRskwCPE3wnOMquY1D4ihtgbfvIgGbubZMeaXciIanIcnyM1lFJtEtRPR 3Als6nfYLASC/9yxF4EVJMbTyghZ9R4htoJ9OzVosYb21b2Ej0crjJ6cpCZrp/cMYIjv 1Gb7E9Q844qiFefI2HYigUKcyIIrDTND/9/m0= 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:mime-version:content-transfer-encoding; bh=HBbLqHvQC5yHtS/+IDR28AnQ1+6F5Z4yhDyaU3w2t3M=; b=OoP5yvYObJBoqoaQcxCHI5y+KgVFZFUw48lkCBKHI6jksJKWw0JeiXmTugSh0Cemwz YWYfEI4b8mx+LVWIbMZS6Uh1tGXkvlH6SeHr657iX6trPsNyx20K8VjNEch8lPC6lZhZ 6NjIKK/rcoW8dHpKzCUHFhXA5wyk0xLg8XC/iT6VKXAjhSHom6tb3jOhq8iPgGyj2z/A 3HK8vMQgyNRiG9FHN81MJ8oMzFhAijIUiAzBrE1Bs32iKP/XI0UE05/5YUKQMQIfpfJq IXC3kJfqsknTlkZeRGEWCm5Bth+zU6QFZkIBEBdvKhXD+7cAmRFh8XvJU2OnsceqIgb/ aqQg== X-Gm-Message-State: AMke39mJXQDiNZ94MjsQuGJbLOwie9NBaoZLnTICMuxuAHvRmIGYfBuE7tNadIedfg+11GQf X-Received: by 10.28.130.207 with SMTP id e198mr27459wmd.4.1488484420100; Thu, 02 Mar 2017 11:53:40 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id o143sm2097wmd.3.2017.03.02.11.53.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 11:53:37 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 4BAD63E02E1; Thu, 2 Mar 2017 19:53:37 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, rth@twiddle.net, pbonzini@redhat.com Date: Thu, 2 Mar 2017 19:53:29 +0000 Message-Id: <20170302195337.31558-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170302195337.31558-1-alex.bennee@linaro.org> References: <20170302195337.31558-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::235 Subject: [Qemu-devel] [PATCH v2 03/11] cpus.c: add additional error_report when !TARGET_SUPPORT_MTTCG 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: mttcg@listserver.greensocs.com, nikunj@linux.vnet.ibm.com, Peter Crosthwaite , a.rigo@virtualopensystems.com, qemu-devel@nongnu.org, cota@braap.org, bobby.prani@gmail.com, =?utf-8?q?Alex_Benn=C3=A9e?= , fred.konrad@greensocs.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While we may fail the memory ordering check later that can be confusing. So in cases where TARGET_SUPPORT_MTTCG has yet to be defined we should say so specifically. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- cpus.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.11.0 diff --git a/cpus.c b/cpus.c index e9aab9f70f..2459f564ea 100644 --- a/cpus.c +++ b/cpus.c @@ -206,6 +206,10 @@ void qemu_tcg_configure(QemuOpts *opts, Error **errp) } else if (use_icount) { error_setg(errp, "No MTTCG when icount is enabled"); } else { +#ifndef TARGET_SUPPORT_MTTCG + error_report("Guest not yet converted to MTTCG - " + "you may get unexpected results"); +#endif if (!check_tcg_memory_orders_compatible()) { error_report("Guest expects a stronger memory ordering " "than the host provides");