Message ID | 20250309175207.43828-15-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:64ce:0:b0:38f:210b:807b with SMTP id f14csp653094wri; Sun, 9 Mar 2025 10:54:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUE+QYR5K+2uoAbJ2pD7LZKf3H4A2ULYbUnK25VR9irl6DPW1HDNZNErTdFJR1Kod55P3tPnA==@linaro.org X-Google-Smtp-Source: AGHT+IG0/crvJSRn1Q4XmhenIHGgbLitPjQa8vmYEJrnNxvmKMhcOXh9QjnhWDoeAE9rFHaLtYDD X-Received: by 2002:a05:6214:20cf:b0:6e8:fe16:4d45 with SMTP id 6a1803df08f44-6e90069852cmr144273706d6.41.1741542895092; Sun, 09 Mar 2025 10:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1741542895; cv=none; d=google.com; s=arc-20240605; b=X/GF9jpsH5PQozAM35Bt/WuxWNmS9RCMgNWJjaTo3O3ScWQGeUfMPEvAGpVgRznTCg bTEY/LQJ4u0uHrtfCMsc0OKEe29Pay+PiFT7PoQTSRxbUivLL+77w/p3YU6XiD8BwzH7 6BxFY3nIPccnwchQKgqHcNe3HfVVPzGDAIWhlhzqGnYJmmqEtpwoP7FHkJZNLllVf8uY oeDDoMRsJSX4JT//RoYZPBJwSeb5krVPeGJDmSsqqRdpAVPl8orGqNnb2GVINGGVATEn kWuOi6h/q8usCqLpE2BWyDTFcxKR+OORFsdm3w7FPuXIWhipH8hlrEaK6JVTbS0A1bG7 K1dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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:to:from :dkim-signature; bh=DCutmRo13MukVGEmkojmLCPMgyHiIA14FLLQ41OISws=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=O4gIpn08meJ5Nsr91VN8h3VuKAgeNIUXX1XPMA+bzpB3NYR0Med0sa3MzNC2vzSitQ VHp/Gq10mI4KrPlKKk18BwKNGFcupWdswv8v6r0x2Y1Czvf/DtVkoivwvKI9UEBugDU2 c9GcVLEhzf4t0DGTlPiwmlVY1q1fS7izKOmTFb1EJ9XNBMzs98C+kLoW3zGrA0239gHN WDDQYO6ZI+L6/SHuc4hlBpGgtMM6x/gVdVBYMzIvRQ7Rfnc1d3b01PMB6Gh8nKXpek7H CB6M/USOJTL1VkI5O6vaNbefiodu6VzbOm5gNsN/PMsqPYhC3x3LyKx7L+JGyXDex32O GfYQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ms92iJ66; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6e8f707cca2si74352856d6.63.2025.03.09.10.54.54 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 09 Mar 2025 10:54:55 -0700 (PDT) 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=Ms92iJ66; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1trKq4-00063Z-4T; Sun, 09 Mar 2025 13:53:24 -0400 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 <philmd@linaro.org>) id 1trKpy-0005gU-6U for qemu-devel@nongnu.org; Sun, 09 Mar 2025 13:53:18 -0400 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 <philmd@linaro.org>) id 1trKpw-0004u8-AP for qemu-devel@nongnu.org; Sun, 09 Mar 2025 13:53:17 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3912d2c89ecso2906597f8f.2 for <qemu-devel@nongnu.org>; Sun, 09 Mar 2025 10:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741542794; x=1742147594; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=DCutmRo13MukVGEmkojmLCPMgyHiIA14FLLQ41OISws=; b=Ms92iJ66Al/1ZRkWxxn4O56946IRk65T4m+hDaVStrhe7nUY9kZriwl7PaZYV9z5/u 0w9+hA5rIhRxSbEKJb3aU0vhNdj+MmFrnz1Ytqb+FMTW4B5FMMTiIYFGM0pw5Egjpd0v z4BPB18cPzHw7BwnZylxrxv/YotbGv/2gQ4ykiS/Qlg/gTsaackrS6zVm/w1O3HkRpPq 7RRwKkI38duLhhDndVx+ApBNiNy0dTmccnlUPlemup3n5Q6IrfKm6iPZHPPfoA5EQJAJ S8YptQp9+kEQp1OsZq0CwE0X+gkI1IHJn+Tnv9ge7Razh9gLioioC4OXkZSNtmEbW72R Cf5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741542794; x=1742147594; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DCutmRo13MukVGEmkojmLCPMgyHiIA14FLLQ41OISws=; b=S+w+waaXDOduIZ/y5kHO5aV2tQRyFynqXc2rO49d028IZI7zX11N1SIMaxDD/bmlzf lmsuddqao2zgea8jMHZnh/jf23OFnmt9WM1nJ+o6NAaOIjYDh0lQ5of0vfqcl/sxvFdA uDMfpi7ZNNCml1EPMS+sDr6GMQHniajMVLuY3z3L8ZicvpFexEhVSdA8T6IjPt0QePID +N6MvlJEqxnd7/L82IJQKUCoAc4a0nSruq3plryjArIF4Cw/KM0CpeE54Ok5BhxT6FOr wVWrl6It3CST6cytS3Jhnlu0FCw5P8Hb0XOhVpOxIUlvpYM6kh4Egco8HOZrMUWl65H3 7MwA== X-Gm-Message-State: AOJu0Yxmv63JiWYmhX25K++4jkNKel667lznvL3EumpGkuaHpVVXMGnY B5fo0n+qu7ZMMENashzVYMqgAheEIl+sx+ErzTkm67nPltsybCrP+1udlSkm35Ydf+hlHqXYK/+ 0GXA= X-Gm-Gg: ASbGncs8gWesUpfzeB9y4zu6XrV4/5Arjc87hO636cOX5teo9JX4eUeg13RxHaZ/LTG E5z0dzGNBwwaMDVH3MjxG04VPoo0bpf9z3mXkmw9bLYTBOboOk8e8IGPHN+VcqUWFHre54bRT/2 SuWeiPdQjk9eCWmnUrFXoUOvB/nNi7kfJk+6uU5zyxXqcdsNFFBi77QCn9FNs1S/Evu735Kb+4G cAMvU14uxrwBca+S30GSIQSgKZjw8ew7oHJwnFNDq/kae8uj9ZZ7PnfylJPs7dPsjFB5ad2cAOv pbIWc6PLyIgiyGn5LVnmXY1Edd45358WjtRMGzxrYvtnLhv6rx+4fgIhxry03+mZRUGt0lh/1Fu 0MeS+qpjcpXr5WI19XpQ= X-Received: by 2002:a05:6000:1862:b0:390:fe4b:70b9 with SMTP id ffacd0b85a97d-39132d6c5demr8882301f8f.21.1741542794548; Sun, 09 Mar 2025 10:53:14 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912c0e2f10sm12511218f8f.65.2025.03.09.10.53.13 for <qemu-devel@nongnu.org> (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 09 Mar 2025 10:53:14 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Subject: [PULL 14/38] cpus: Restrict cpu_has_work() to system emulation Date: Sun, 9 Mar 2025 18:51:43 +0100 Message-ID: <20250309175207.43828-15-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250309175207.43828-1-philmd@linaro.org> References: <20250309175207.43828-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/38] linux-user: Only include 'exec/tb-flush.h' header when necessary
|
expand
|
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index c6df426c947..2d4ebb79905 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -750,6 +750,20 @@ int cpu_asidx_from_attrs(CPUState *cpu, MemTxAttrs attrs); */ bool cpu_virtio_is_big_endian(CPUState *cpu); +/** + * cpu_has_work: + * @cpu: The vCPU to check. + * + * Checks whether the CPU has work to do. + * + * Returns: %true if the CPU has work, %false otherwise. + */ +static inline bool cpu_has_work(CPUState *cpu) +{ + g_assert(cpu->cc->has_work); + return cpu->cc->has_work(cpu); +} + #endif /* CONFIG_USER_ONLY */ /** @@ -816,20 +830,6 @@ CPUState *cpu_create(const char *typename); */ const char *parse_cpu_option(const char *cpu_option); -/** - * cpu_has_work: - * @cpu: The vCPU to check. - * - * Checks whether the CPU has work to do. - * - * Returns: %true if the CPU has work, %false otherwise. - */ -static inline bool cpu_has_work(CPUState *cpu) -{ - g_assert(cpu->cc->has_work); - return cpu->cc->has_work(cpu); -} - /** * qemu_cpu_is_self: * @cpu: The vCPU to check against.