From nobody Thu Jan 23 06:01:36 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1737471978; cv=none; d=zohomail.com; s=zohoarc; b=PD5pEzCaBi4nce0hjr+FhZvLdm895uEDuqyKHO6n4a6hkOWO2bL/HwfRNXkpJmACruDI/plak/7eedxD2QhZO5Lit1QwsJSkUH8WhGnM47OEJIzCUmJQ7ZaweQdH3tIce7q2JA2w3ML+xmqLC+PXL+H9LKabcsEFGVCma4sBW4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1737471978; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GxmkPvBiu38d4nUnNXUTFzs0Gc1uo0/SVUn8XW+hnMU=; b=gzxb0dLwfXzgno4V6sMGUaS2JZ3089Y3sWGhmvruSSqgMPhJmfiMg5+6n9VZaDbbwoE3p1SRUoPFLFuVt0kaWBZdqQ20y5MpPAAkh9Luk1lIAMry6ZygC2hDs/QuynJHnPIlBjbk2hO5y5p/RJaigK7Dv2+b/iVLaL3Zg9ozNC0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1737471978826926.271099541633; Tue, 21 Jan 2025 07:06:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) 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 ) 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 ) 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 ; Tue, 21 Jan 2025 06:24:13 -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) 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-Google-Smtp-Source: AGHT+IFZrFESwsFNUaYJimOkejXsWSHj1fmxkyRQ7dWj7lO3cgLc/tLtR93I3PvPnuqUDGaw2gsplA== 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) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1737471979979019000 In order to expand cpu_has_work(), un-inline it. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/core/cpu.h | 6 +----- hw/core/cpu-system.c | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) 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); =20 #endif /* CONFIG_USER_ONLY */ =20 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" =20 +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) { --=20 2.47.1