Message ID | 20250121142341.17001-7-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:fb47:0:b0:385:e875:8a9e with SMTP id c7csp226358wrs; Tue, 21 Jan 2025 06:35:22 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX8UjkZg/CHUS3DIIWZER7IBYXW6CSBLI4+p9UNaquJ7Rr4wOgZy6XKUk9WfiWJmveO8pgTKQ==@linaro.org X-Google-Smtp-Source: AGHT+IE6lp2eXpTuG4QNYd+gLWLXm92XNdEw+NbqmqtxJAoyLTxg6a4IlEI+xXNSMu28tc1xr56R X-Received: by 2002:ac8:5713:0:b0:466:85eb:6118 with SMTP id d75a77b69052e-46e12a637b1mr265866421cf.16.1737470122091; Tue, 21 Jan 2025 06:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737470122; cv=none; d=google.com; s=arc-20240605; b=WBwDFxRPlf4veLtOgXX67WOgi/VKiOh5vC2s5kDsuHY559Ab4FV7oO/ubthgUnGlCz TezA8sfaqxmwxlC+oMiHI8uSm5aM6D3CCwb5/mqtlIB8KmkUDgW39hUgB4Qm2FOQO+Ql T4WrPi8ff6TpdwREU6V2fSk5Q1IiHyp5c82e19308S2qIueMwjxU+/cLKt0jbLyOxQLH dKXhwaKr0FcE8zVvwV4toBJ1e/UU8s+vwVYgn02fPfYV47ZqagadMEDMoCyF7WW8SKQU WhgK5WAecUGMa7sES3q5HBPharbUe/ZHWDfpi6zVB7a/nf6POrK4PC19VHWI/h1ZuQKT Q5Vw== 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:cc:to :from:dkim-signature; bh=GxmkPvBiu38d4nUnNXUTFzs0Gc1uo0/SVUn8XW+hnMU=; fh=T9nLPmYdz8kSl8qI33evWuh/VVTqN+U2Q3T/ETy8raQ=; b=dnBHMjcTXYLtsXixCjkR7QygN6xXcbkx5h1rvEgg4JKfcCjZi3fs3QfSwdlfkiy+Ta +OWW1r9MQswSp2nps28Oq2GfvMJB6aeCF2D8jMaSWDAaqlzVhTRf2EGegLfz+jgUQf23 AAZgUrJLJBIPvyzwwKK9i2TgRsopT2maByaRzEoNgdEuCmJPJ6UoArDmXIGIopy2m2XX UPWjmDr7FIr1OUloJRIqYdwZWlm/1oGaEdm+QJB+y+MlKxOG0szRM4weDq2f28MZ89f8 pzV40QtDVarGfnTPojH9HP96TuthQAZ4dVwRfUwMKn+6YHp43i8GGAGQ8daqnYBlsTVq A9gg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TjRGMuDO; 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-6e1afc1af4csi130289966d6.144.2025.01.21.06.35.21 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Jan 2025 06:35:22 -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=TjRGMuDO; 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 1taFB4-0000aJ-4c; Tue, 21 Jan 2025 09:24:26 -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 <philmd@linaro.org>) id 1taFAv-0000Wn-TN for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:24:17 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) 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 1taFAs-00034M-58 for qemu-devel@nongnu.org; Tue, 21 Jan 2025 09:24:16 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-436345cc17bso41079805e9.0 for <qemu-devel@nongnu.org>; Tue, 21 Jan 2025 06:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737469452; x=1738074252; 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=GxmkPvBiu38d4nUnNXUTFzs0Gc1uo0/SVUn8XW+hnMU=; b=TjRGMuDOEFgJpuQbrjpiGAGfGLBjEeUWM5sfnTrFiYV9bhsUhPig3Z7YzBkdKgVL1Y 411d6tyr6Wbrnlt7qGoECwX05YYWKssi23GenIOtMfdoPOXVIdw/8dX3MDBYkfZ21FKL MVrbGTTvHLPLDkODw15gwrH8mQxnMUVjAooWGOUWQ5ei8Q8475WA2KBJUdnq+9lTG9Ec dB4+tBiC7WKRXpZrA8vK5Lq+5nbXdzfy0LHhPd5aA/hiDMdH/wLxtBJwc8Tsu+aFmojr QvXfepxz9v52KHHiXpARzUai+KYGqWlxcsgP2TazembSabebXUuz11YLqzKX3/OksM6U jgow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737469452; x=1738074252; 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=GxmkPvBiu38d4nUnNXUTFzs0Gc1uo0/SVUn8XW+hnMU=; b=eOLYca+rlP+CGT+kCgkR9p1tMb5H8AtWd5+WqK2R1L1zRkOU8ZRBVA+rtabi8l8CI3 p6mYIwP0XiqkDERZbNhpv4qc5av4zNVrXeJTbuFykJ/xZJBU+/D5rvA2eMsxcTZi0CtZ 9qlK9Van0VHXf46XSF9qDlWmsgG2sROGCF73v7/yE+qKa5PT9TKA/wZV/Huoq1FjR2m+ DuN23hYLLM6ja//H3Is2aGcHu8S+Go2h2+G87ir0mNFEzcf2I83oaCwVL+BkMSa/JaQy Fux5daUwqtmXnnLYXMu1RzvXoXkIb3Q9EARTT9E/JuiyJwA9SoTEtWfTFltauNsw9toA W8FQ== X-Gm-Message-State: AOJu0YyDAZfhlij+4GdjdZato4Qwi/fXKlYSpl9VeDiSLEGfsbRxxblJ VJl2rwqyYbbyoclBO1LAS7Z3h5KX+WN5Rrb1EA65EW+gbZs9HwqDoqv7ybNLnEZrKxh7A/HYr/u sHP8= X-Gm-Gg: ASbGncuX1igfI6W6e5vhUyJ//AcyG5aI21wclnvF91zg/92ssZK8/S1nQdXegv8CWxg tvep5XDSx33EUU40rIiFTLWtibjgcuRpuViZxLRUXI6XSr8KUIZQbf0MSAcSAseH/Um0OOXtM10 L/LlC/acQtAq/kiLbnmsBV3ocVDb+Z2SiMOqSQGvEHVWjQgKJfs2TqNzKTk731HQDiJQDa60RhR Gc0+LtPkO7l6e/Ieyj04aaLZjAFx62EfRf2QRmxl0SP9kfGHjtOM8O207AVEUCp0yKwyQLkV5lA Ju1sbWLq3/ni5tztNcaqU2lY7EgeECKlvJC4XNTh5eIt X-Received: by 2002:a05:600c:4511:b0:434:f871:1b96 with SMTP id 5b1f17b1804b1-438914388e5mr185146615e9.29.1737469452073; Tue, 21 Jan 2025 06:24:12 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4389046885esm177866955e9.36.2025.01.21.06.24.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 21 Jan 2025 06:24:11 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH 06/28] cpus: Un-inline cpu_has_work() Date: Tue, 21 Jan 2025 15:23:19 +0100 Message-ID: <20250121142341.17001-7-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250121142341.17001-1-philmd@linaro.org> References: <20250121142341.17001-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::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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=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: <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 |
cpus: Restrict CPU has_work() handlers to system emulation
|
expand
|
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index e094d54949d..d64c823e768 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -756,11 +756,7 @@ bool cpu_virtio_is_big_endian(CPUState *cpu); * * 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); -} +bool cpu_has_work(CPUState *cpu); #endif /* CONFIG_USER_ONLY */ diff --git a/hw/core/cpu-system.c b/hw/core/cpu-system.c index 37d54d04bf8..16d5efee12d 100644 --- a/hw/core/cpu-system.c +++ b/hw/core/cpu-system.c @@ -23,6 +23,12 @@ #include "exec/tswap.h" #include "hw/core/sysemu-cpu-ops.h" +bool cpu_has_work(CPUState *cpu) +{ + g_assert(cpu->cc->has_work); + return cpu->cc->has_work(cpu); +} + bool cpu_paging_enabled(const CPUState *cpu) { if (cpu->cc->sysemu_ops->get_paging_enabled) {
In order to expand cpu_has_work(), un-inline it. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- include/hw/core/cpu.h | 6 +----- hw/core/cpu-system.c | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-)