From patchwork Fri Jan 19 11:34:32 2024 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: 763906 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a08:0:b0:337:62d3:c6d5 with SMTP id m8csp397152wrq; Fri, 19 Jan 2024 03:36:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVox/hfXKEL8b+DnnOzkIRMzaCzisdmWZ2nayxnQlST5EgnRyQ+5ICoZ8mupXBRBetGmE/ X-Received: by 2002:ac8:5f4e:0:b0:42a:205a:fdea with SMTP id y14-20020ac85f4e000000b0042a205afdeamr1719491qta.87.1705664186654; Fri, 19 Jan 2024 03:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705664186; cv=none; d=google.com; s=arc-20160816; b=rDeK+nBnIofckYa8pjWWh3ZL3rsQOQLrxiuf1OtkiSWISmG0fR6JDiLQuUVJRG/I4d W9BGb60JWTi3+v6I06Nq8Hu3Sp21DRTcOqv2NE2LaCZ9X6victZa+sUtuirdXA0GsdOB S4hgr5HyGDnMgup8kGxbA4ah0sYr8Q0hE8loAg2OhzP8LpiTmfQDk515aPRGYCe5TyE0 sGoca7Ja+0Ttnek2t/7UrMeNltfUbqAQNHQ1Xi5AmYoDk1V962ywSsmoA/aEk6bApt+C k58D4QYwJR97MzLvyS2vcMBj7hbMG9k6ACl06qyZt8ZBjGMOGkhAz8wkFb2aWKOzQPGb gJzA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=grikY+amHmPq7q8W8EjnJR7Fi9QeXPdA+8sNJUwVsyo=; fh=mNIn0IJuUUufB5QRXQRd5w9ZKLOgI80E423Hl3yXJsM=; b=a6ezeIzjzGxUm3CRaCCex+Npdc47utB/AUI1aaik5qBzuL3ZJssGFRZM2tcRyikkfx xDjrqzdFDvITpOPnRMarKOKwPQu5f4meCLnyK5HIuWohRS6r1SuWWnix50BWiC93Uzv8 76nZvg28YpOjDkh97Bat+946zskY8n8ZvxN6otSRdHNh87oE2oxZbgRTgZ3VuDM4JXrF W759qP1VmrrIjvf6Rr1GAkAsf6Zz09fUqsLkm56woj/ccAYXFQoWirMqJA4O7zLkW5RA ZpuTTjFKyygckX43LSXoZ3hJuwNVWlsoBhNfViDrDlt24FKps9i9Sc7bIiSo7D6lysjY UfuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A6oNhbaa; 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 c16-20020a05622a025000b0042a08802770si7003977qtx.355.2024.01.19.03.36.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 03:36:26 -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=A6oNhbaa; 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 1rQn9k-0001Xx-9B; Fri, 19 Jan 2024 06:35:28 -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 1rQn9i-0001W7-VS for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:35:27 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQn9g-0007Wu-13 for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:35:26 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-337bad75860so450549f8f.1 for ; Fri, 19 Jan 2024 03:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705664122; x=1706268922; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=grikY+amHmPq7q8W8EjnJR7Fi9QeXPdA+8sNJUwVsyo=; b=A6oNhbaaso+N9ZBobJD74HwobF3vF94lpf31BGUc7GFKzTCqQMdN9byuOarlClYqdg UgJmkPP8hcOW07v/NyznC0Jwdlswox3Z28L9csV3wWSDPd+PWGoOrhDnmIbtSL/Oh3vo XEBUijIIIMbLH6StMm3DSlB3H4thutFIaULdOf2bh+gJlFqPyP9tDCkFh+Hs3cnexc7u qz9/nGMGaFTLeeI1G1kRMopa+FzCZuAGWGy+3dwUg+9oieRQ8E0PewryPZqo5fN5RH6d 7xRP+0hhsUPHwkFAlLb6aZEtsOLLSpXME7roqFbNFRNmWcdGOBwm8Kq7LULkYpiPRwSd /LWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705664122; x=1706268922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=grikY+amHmPq7q8W8EjnJR7Fi9QeXPdA+8sNJUwVsyo=; b=GkykYAqIQNoju37ldym0ooWZb8J/gVjdrzKOAIfmPbDdKfjJqvLNupXFxoht0A3oNC HIfHjYyhllHmZxHTERQ6J87rBc8DfAXSMrBXyAgcT5pNAp9FrOH6NNj3+e0r/XzqPBv0 nz/KbsnSkbaUOx45meAYJMaejvPS2rbpjIRw9LkD0MvhtBx7vOB0VpsBxhH+h/D+s0PB t3Gei1X/RM38HqWyn+P9lHNP9x6GraOi6TxxktilVEpsbRptvyY4B5HoJ9mVP+dN6MXj S2jTn9uolMrl4njiOsj+cwDp5o3Gc29RxctlhH6RJUcpo5NxXP6KYlAl+NE7IG/n+Bme arOw== X-Gm-Message-State: AOJu0Yxrk7zbNCExsSGQHkpyyOxRVsLbHYeGFIVZvEXhfx4xct6Wfn9+ 6vQNs2fU4QnnRYMlaMCsaGgfzbbASKjWu/jEa1/zlXN03JC+dJS3J+G1Zv3dmeo7efHDcpFHKRd 9X7obMg== X-Received: by 2002:adf:f408:0:b0:337:68ab:617f with SMTP id g8-20020adff408000000b0033768ab617fmr1477351wro.15.1705664122436; Fri, 19 Jan 2024 03:35:22 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id h4-20020a5d5044000000b0033609b71825sm6271320wrt.35.2024.01.19.03.35.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 03:35:22 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Peter Maydell , Paolo Bonzini Subject: [PULL 03/36] accel: Do not set CPUState::tcg_cflags in non-TCG accels Date: Fri, 19 Jan 2024 12:34:32 +0100 Message-ID: <20240119113507.31951-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119113507.31951-1-philmd@linaro.org> References: <20240119113507.31951-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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 Message-Id: <20231130075958.21285-1-philmd@linaro.org> --- 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 826ce842c0..593695b424 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1796,8 +1796,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 2524881ce2..03822d9ba8 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -7221,8 +7221,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