From patchwork Fri Oct 20 16:36:35 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: 736267 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp401067wrl; Fri, 20 Oct 2023 09:40:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+AjKQBFkrtvc9QP47IG5cbPgImcAy80hw/8BThlq4WwIkCXBXUD5zQe39fIUri/8zqxkB X-Received: by 2002:a05:6214:1764:b0:66d:9900:cfa3 with SMTP id et4-20020a056214176400b0066d9900cfa3mr2152665qvb.28.1697820036455; Fri, 20 Oct 2023 09:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697820036; cv=none; d=google.com; s=arc-20160816; b=GQ1GJnUaC+lR4wYtfH3KHJFF0jqxKcCXctotpPR+KLJkRhYNQWJ8Rhv4lfSqWyZr3Y +kTpA3S5SCh7ORKT3ZiQksXveeX274UftFxEQFGRgxmoV5t2MnGTjVubCu7q37uE4OFr UE2px6p6Tv5I7gqylgZ+Zh3otArnGO7KJyMlln9sOImB7hhAoRtAM6UXucKfAUJTXE5N 2HXfu6CS0q10obLBbFTkGqduzmnzQfM0enOBb8+w/0WELf+u43/6L38t4GFvlnl1KmlT MEp5rR+XnMCBE7QBhoejyiMJVglw5O1ZwX8SswsEq0BYcYmfzLxOqWh8PYhaSfd693te HHmg== 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=XJgrMi/wBqEbOvB4DV5saOShbSMfpSRqXMWSTunBKJo=; fh=urbsc+C6xnB/Cu276HBg3jk7Jn9Nncnewa/Ayf0I/i0=; b=BMK9vFLExVAJyUIl8hSedIxYX0l9YYtaJu1W2miahLUv5nCt9PNwLOWdHbcitQw27r bVKy9vsYDQa2jiFT5iA045KYJIZS68YFa6J8RT11g1kTzsM+Cp0hvNO/RgeVBIYvyAgJ 8MZVRyXkTz1j9AKhTmjHDvhvIFNbSKXEexwRG7ep4reVuj2JXyGAwwfTf8SuRxY697xX ccVJuE5iVmplvZfZNqSS/xNsZUT851xCZivSy38U1hRocOOMfSIr7BUWImdSPvSCCl2I vf8LtB6B/npgvPYdZ0KAZwVqzatWY2bxlrfVEcmGyPZ1xj7uI0sH7ql1NC2g64vU6Tkv WZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="j/iqubrl"; 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 m12-20020a05621402ac00b00653589bac4fsi1643034qvv.48.2023.10.20.09.40.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 09:40:36 -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="j/iqubrl"; 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 1qtsWI-0005TX-NC; Fri, 20 Oct 2023 12:38:42 -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 ) id 1qtsWA-0005Fq-Je for qemu-devel@nongnu.org; Fri, 20 Oct 2023 12:38:35 -0400 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtsW8-0002gx-1w for qemu-devel@nongnu.org; Fri, 20 Oct 2023 12:38:33 -0400 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-53e04b17132so1560334a12.0 for ; Fri, 20 Oct 2023 09:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697819908; x=1698424708; 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=XJgrMi/wBqEbOvB4DV5saOShbSMfpSRqXMWSTunBKJo=; b=j/iqubrldvfGNHyR1EiLGFfkWpATzt021m/DEmJANJ+fI7aiCnPQP7LCNB8CymPpeH l5VnhwMfeuKvjOzZDY2AOLeyK96lNpXe7wi4ntLiPh8HDDhsA2rXo5/t4LdobeRMTyG7 TKLITtqWBjjH01e+f873bbThtYBMshMFIfKMP9etBKBaYDrn0h+YhBSrEu6lNUFQFhKM iTN6CehHKhaJJSDcxQzXccUtHdrxb5XulFf2EXx3Wmv4MSd9AhcP0EAwhEKF9Z3HZB9T U7pZIbzIOpbzW+1VDSvsr6wuVjavR3LLyg+TJMbZ4f6nsHiSsf+/b/FhHYTgdmlrqcZZ aTBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697819908; x=1698424708; 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=XJgrMi/wBqEbOvB4DV5saOShbSMfpSRqXMWSTunBKJo=; b=VHwiFKL1kNs7obHNXJbQcvietVGGy5vVECKds6iJZay0E3Fb0jgz2TNvH95LIVxXVl +r7YXTaoJs6oGs/3UWTtSWsdyaQlbuWvdE1fCRqbJZ4Ki7VgcbHpzul3vjnWTiVyqU1V mi8IbwmUSKRu5wM/xVwY0JopXrHtrNyg05sEvdz/+7ZxKvS38OBm5xQ+9NMcy0cmjcZ+ eq3GTEwGYzuM2n/CRi/Me0KPu1+OCRRVfwAUyt7Tm3LI+PUFl6LijVUtU5/wRN4AFkVm 5sUpGEPuwYeXUGu9KeepH8+5LgnftY8pBBDWfFZedy9FfEi6Oej9FfwZu2n41uJqtCWu q1ew== X-Gm-Message-State: AOJu0YwoTpUTlZ6rFclYiwLijo4UY+LKpOAugxA4GfA+kfpR09nejFWG pR89VETCDrmpp1vjNOttVoeB+X/Cf9OrGv5183o= X-Received: by 2002:a17:906:c14c:b0:9c3:e158:316a with SMTP id dp12-20020a170906c14c00b009c3e158316amr1782665ejc.68.1697819907900; Fri, 20 Oct 2023 09:38:27 -0700 (PDT) Received: from m1x-phil.lan (tbo33-h01-176-171-212-97.dsl.sta.abo.bbox.fr. [176.171.212.97]) by smtp.gmail.com with ESMTPSA id s19-20020a170906bc5300b009b957d5237asm1805635ejv.80.2023.10.20.09.38.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Oct 2023 09:38:26 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Richard Henderson , Paolo Bonzini , Alistair Francis , qemu-arm@nongnu.org, qemu-riscv@nongnu.org, "Edgar E. Iglesias" , qemu-ppc@nongnu.org, Eduardo Habkost , "Michael S. Tsirkin" , qemu-s390x@nongnu.org, Peter Maydell , =?utf-8?q?Alex_Benn=C3=A9e?= , Zhao Liu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier Subject: [PATCH 13/19] cpus: Replace first_cpu by qemu_get_cpu(0, TYPE_M68K_CPU) Date: Fri, 20 Oct 2023 18:36:35 +0200 Message-ID: <20231020163643.86105-14-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231020163643.86105-1-philmd@linaro.org> References: <20231020163643.86105-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52b; envelope-from=philmd@linaro.org; helo=mail-ed1-x52b.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Mechanical change using the following coccinelle script: @@ @@ - first_cpu + qemu_get_cpu(0, TYPE_M68K_CPU) Signed-off-by: Philippe Mathieu-Daudé --- hw/intc/m68k_irqc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/m68k_irqc.c b/hw/intc/m68k_irqc.c index 0c515e4ecb..071937e6eb 100644 --- a/hw/intc/m68k_irqc.c +++ b/hw/intc/m68k_irqc.c @@ -35,7 +35,7 @@ static void m68k_irqc_print_info(InterruptStatsProvider *obj, Monitor *mon) static void m68k_set_irq(void *opaque, int irq, int level) { M68KIRQCState *s = opaque; - M68kCPU *cpu = M68K_CPU(first_cpu); + M68kCPU *cpu = M68K_CPU(qemu_get_cpu(0, TYPE_M68K_CPU)); int i; if (level) {