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: 1852679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=j/iqubrl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SBr1K2DHYz23jM for ; Sat, 21 Oct 2023 03:40:37 +1100 (AEDT) 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-Google-Smtp-Source: AGHT+IH7+ZNyajLwkQ3t7c25QQCi97yzQLzCUBWOzenMRYSotv/xdOmSa0eQLzVkCMAjxOV447k7wA== 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.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) {