From patchwork Thu Nov 30 07:59:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 748494 Delivered-To: patch@linaro.org Received: by 2002:adf:e9c2:0:b0:32d:baff:b0ca with SMTP id l2csp743406wrn; Thu, 30 Nov 2023 00:01:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEX3tiaJvuzFuEtrj6Dmm72w9776zn9Btzeuhv8ePF9iuyluPZKL6fSa0Z1RJzptdUt51Bq X-Received: by 2002:a05:620a:3790:b0:77d:98bc:fd7e with SMTP id pi16-20020a05620a379000b0077d98bcfd7emr14341642qkn.50.1701331283911; Thu, 30 Nov 2023 00:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701331283; cv=none; d=google.com; s=arc-20160816; b=Pf0cdhwYTSgcicSYjpCgGutG2qFaPngxxvd9C5IPA1ThnjyJ8okMb8ua8GPhXQsZy5 O48wgCGry6nn4r1oEHW/aLUzIua/vdi0Hff++EBFtrTz+EXxepmBxbEmauyYhUEzpyck QXP9c9WSQXT5w4qsQ9MFbTYEefwBz0HaHC+n1M+8HRUCBF5Fzq60gTIYJB9g+ze05q1J l98S77FzJWmuT0c7uDoTf1KgSX70y9xik6OSxLGWAnxQqddCGJDAQJAQ6W9tQ4sY/uiG ls+xro0mjQU5aEcML/wOFnObISwcGQWvSv4iobzz8pr4Ei0Q4TFKThx2EYaRtHj8CUnA HRpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=GQXmI5dG7Gt3cquF9yAt8aqpNMg5Z7f0qPD848Q1k2g=; fh=esR+ogMZLubBrDBGBaqlC7clgujgq1Yy5VgYndkYPbc=; b=rEt30BBEHA/NwEDZd9+wBs7Z/9Qg9qFv8Mpsx8ip2dsLr3xpZnbWwdFcR6rpXp9+Jp 3ClQ9dVKihdn3DIyQE+7IaaDkzwqH6F03LRWry1kH+TxXLE7UTkCbjJ/Z2oUpu5l0u12 8+y4vm98HDt2A2NbO0Q/Q3My0qYndVeqpnKnwn+AI65IZ6aorfPA7ULUXfADySOPdR/J 9XPT9kHz+9/B1/YKEn3OHnjPSfHeR8StwLhE6crykYpuR0oKt/lx6p/KTghDHNOmAk2q nTIWATwohLcI/4PlPsfq5pcsz+qY1AW3HjzhklLyP4Vn3bfTi+2N7wy664q+00omhwvS 5kBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eFr879MS; 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 pw3-20020a05620a63c300b00770f3ea0864si522089qkn.783.2023.11.30.00.01.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Nov 2023 00:01:23 -0800 (PST) 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=eFr879MS; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8by9-0002DX-3B; Thu, 30 Nov 2023 03:00:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8by3-0002D2-9W for qemu-devel@nongnu.org; Thu, 30 Nov 2023 03:00:18 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8bxx-00026V-43 for qemu-devel@nongnu.org; Thu, 30 Nov 2023 03:00:14 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-332ed02ccd9so430067f8f.0 for ; Thu, 30 Nov 2023 00:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701331205; x=1701936005; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GQXmI5dG7Gt3cquF9yAt8aqpNMg5Z7f0qPD848Q1k2g=; b=eFr879MSgHVbT5w2vcqQzJEwmMkgB3v0pB+E6GMUE0eD55ed1uZgj0xgTDTiPMumbI 2Z9lQDj2Bz1U61m7gCR2+HORKpX+A2TkIcYGUs6ZO5wyT1xGahXap0LlnjSQFvXykv5J IUEL+cRITj1ElLEF5hB489QVCWB2giDd+zzekxbvHybW5cakuFr6lSQg5ZdtRQt86Ag9 XGKxH1NX9kdk5TSd+zhMIiSoxcRcN85FwzEq4ZMjd093i2oKhCi9FPPJVD0RbJbdpAO0 lHxMjvWpQfGh+S/xmWSuHdIWs/jKkmhRRx6lSmPmKwrxP7URJwr/Bd0AH4xV3ymFgppU 795A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701331205; x=1701936005; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GQXmI5dG7Gt3cquF9yAt8aqpNMg5Z7f0qPD848Q1k2g=; b=tdZflHAWQCFz+DeLXACUHf7DyOowqG6k5tVgaqndkE5Ux9k7DP6hvgQFsxC5vtF8KR 6kSnHTQn8VX5VSDOC2nRauYeOIMQ8MT8vG/byKyxTV5U5TahacdYZ2Aj+AlDX0qZB2PH eZAHDjSPyzQPmZvxMU4A75EUhnvfg+Zlwqf/oTbn3OWoBG2h/Tbtl3piCSNmp9B/yJkL UMHCVmQAg5FMcMSblRa/gRi4TBFOFFnQc0Q5cxRZZtl8Yz40lmh7l7tiB0YwpY/+TLuR imw4E+kFakJeDer9sG1otBvaC8YmsoSK+AwgFP6e7kTYuCzscPItlM3vdqbGmOJjkie1 HtZA== X-Gm-Message-State: AOJu0YxJS5EELlDyzZ/xZH+R7FbV1Bk0PqenLkGoBox8lZYiHP2TabAS xPUFMBASsfXcQ5Gqr5PeuxSqkcTuEX8iSc9VyimaSw3e X-Received: by 2002:a05:6000:807:b0:333:880:e2b0 with SMTP id bt7-20020a056000080700b003330880e2b0mr8686426wrb.2.1701331205214; Thu, 30 Nov 2023 00:00:05 -0800 (PST) Received: from localhost.localdomain (53.red-88-28-16.dynamicip.rima-tde.net. [88.28.16.53]) by smtp.gmail.com with ESMTPSA id l7-20020a5d6747000000b003316db2d48dsm771518wrw.34.2023.11.30.00.00.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 Nov 2023 00:00:04 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.0] accel: Do not set CPUState::tcg_cflags in non-TCG accels Date: Thu, 30 Nov 2023 08:59:58 +0100 Message-ID: <20231130075958.21285-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 'tcg_cflags' is specific to TCG. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- Other targets already use it restricted to TCG, or are TCG-only. --- target/arm/cpu.c | 2 +- target/i386/cpu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 25e9d2ae7b..098e964644 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1781,8 +1781,8 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp) int pagebits; Error *local_err = NULL; +#if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY) /* Use pc-relative instructions in system-mode */ -#ifndef CONFIG_USER_ONLY cs->tcg_cflags |= CF_PCREL; #endif diff --git a/target/i386/cpu.c b/target/i386/cpu.c index cd16cb893d..dfb96217ad 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -7222,8 +7222,8 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp) static bool ht_warned; unsigned requested_lbr_fmt; +#if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY) /* Use pc-relative instructions in system-mode */ -#ifndef CONFIG_USER_ONLY cs->tcg_cflags |= CF_PCREL; #endif