Message ID | 20231020163643.86105-17-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp400540wrl; Fri, 20 Oct 2023 09:39:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIakIT3BR3mP61Gi1rja5fhsnmKbJob0Flz1jNb7F2Iexp86/iyZ1RUk4cV9sb1aQh23Wu X-Received: by 2002:a05:622a:148e:b0:41c:da4f:fa26 with SMTP id t14-20020a05622a148e00b0041cda4ffa26mr1642684qtx.66.1697819967528; Fri, 20 Oct 2023 09:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697819967; cv=none; d=google.com; s=arc-20160816; b=sABPodHXCgIdvamQxzZl03ufkWTQUbLceeFWGumeQbJboQwL76A1N+Pqg8sXgkwppu X+T3lawALRV/yVNzTDlgWd0KU13kXZScpgdLcp2K+fL4Ut+1IrxIr0kxQ7P2YWWQi9NJ iN/wXKb7BKp36rzy/moXd6xFTYPzphIE3FLX8FP4bIlP/49v0Le8uMYcNKsRC/J2VtyO /7Ldh3a6fWsx7edDxKdsB5B+chIGSldf3Xfjw85qlyT/rnzAAinvWDRP9SYxNNpB/6GA x1tgn41qPFAj/dOvzTOnlqJvH+EKoebdesPAGKEGxahVpcQ1E6KwlIS9wBo1U483NjMl tLsw== 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=1BNA9y4zfVXlb8HVquuGsJAgjqtZlJA+2+vEQrqSYx0=; fh=0+oAGzMSgE0nSXLTI/o4iFk9zal+DrpcgHB8fs9TnoY=; b=sixLDgRflWzsF+1PFLxmn6YdTzOdaNdViWDJtfuzsv5JF5CtaBdtdDaRSZDdWWfJVv BNXUHi8MGCSy+AGizgAX1Z4HTk2lEbo/j+xOFAu3QtCiTQJMGXgNHkKu8MsupiFGcl5Q WGQ7kc6cEgW82kGvc+WqI3W6U5V+Y0bitZxYS7eXVrwv3FIw6s+3UL1lxp1FirrMvLTB fACY7FXDK29Myeep7qdrfgONYPju2CRdjsrTMbD6vV+wx8mBI4rfJIwTphLDsiu5IAf5 HeGnQjFu46OH4BVGqIPOvp3gofcWnq4tF5EmagRrRgTOIQMWHVVlEleNgtXfZ+9GmA6f v6WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JhPNdToc; 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: <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 s12-20020ac85ccc000000b0041b30072e38si1554408qta.741.2023.10.20.09.39.27 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 09:39:27 -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=JhPNdToc; 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 <qemu-devel-bounces@nongnu.org>) id 1qtsWk-0006TF-VR; Fri, 20 Oct 2023 12:39:11 -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 1qtsWT-0006AH-KV for qemu-devel@nongnu.org; Fri, 20 Oct 2023 12:38:55 -0400 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) 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 1qtsWR-0002q5-Hl for qemu-devel@nongnu.org; Fri, 20 Oct 2023 12:38:53 -0400 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9a6190af24aso172540466b.0 for <qemu-devel@nongnu.org>; Fri, 20 Oct 2023 09:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697819929; x=1698424729; 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=1BNA9y4zfVXlb8HVquuGsJAgjqtZlJA+2+vEQrqSYx0=; b=JhPNdTocbTVArUvvsFVJtAW+R6RCySThAfEjg/8Yr0hQHwJ+VCi9TCPhjLhcRrbc80 1o5xfXC5MsW5OJv/cQFeKpiVrE14vG1ZCV/3uPgsM0NVZrn55y1NZ4GTnivkzSBqN2p+ 6wkOJIZZs22/c9E+8kBl6p2HMvI6uLGFjgWyDcMhgRCQAe67j3vRj5A0GND7vW5Hvtue smuKcJlR+WeeKsMTH4AesDf/HEyAPoc2eOKXlg4WZ8jPiCzMqXgnjhUxYnXdCLtbShIv OZm0Mu2R6uK7egr1dT+qI/K3T2Tt/jMblVOWBzJPlTi8d6hmQdsQOLaRaHfINCS5Vun6 aHOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697819929; x=1698424729; 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=1BNA9y4zfVXlb8HVquuGsJAgjqtZlJA+2+vEQrqSYx0=; b=A7v2RJbAOnmxndYQ1fC6MBfuOkKdkMKUtNG2oTNAsDCQB2hwxPBMRrNuZfwmEYiDfT hbDVLMhraiaWJoj5zrPC2MJT7vZpPFnF2UatVdWvnbsqujbQZc7aFygf/dcGRxC3Zba7 oVtrjY3L2kCo11qO8jDVRh/1R9IhrmLbn9D+r1yt0CwhgLFthdqlFfy+7l1P7QufbQ0I JOR0EZSYZjPh5f0WR/2q/qQJ1UFWf3A2rvTGWc23xK+/r+BK7B520cRueTTaG6SVSp2s bwHql0MQz/qr11jSFyw1sl2ejHgKF7PVU/mU3nOUXN/d1Go2imJWrSE+PixxPWiVthWG g4YQ== X-Gm-Message-State: AOJu0YzN4o3gbSlrHywdluDnJ+KVm/fRboOGrJnurVUJjNcEB6TZB5rj dK62fp9XhwTlg5rPSM8wfC8CKH0TiyXCAw7WG80= X-Received: by 2002:a17:906:ee82:b0:9be:39a4:b440 with SMTP id wt2-20020a170906ee8200b009be39a4b440mr1971962ejb.76.1697819929604; Fri, 20 Oct 2023 09:38:49 -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 m2-20020a17090607c200b009c6a4a5ac80sm1776806ejc.169.2023.10.20.09.38.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Oct 2023 09:38:49 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Thomas Huth <thuth@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Alistair Francis <alistair.francis@wdc.com>, qemu-arm@nongnu.org, qemu-riscv@nongnu.org, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, qemu-ppc@nongnu.org, Eduardo Habkost <eduardo@habkost.net>, "Michael S. Tsirkin" <mst@redhat.com>, qemu-s390x@nongnu.org, Peter Maydell <peter.maydell@linaro.org>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Zhao Liu <zhao1.liu@intel.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Subject: [PATCH 16/19] cpus: Replace first_cpu by qemu_get_cpu(0, TYPE_TRICORE_CPU) Date: Fri, 20 Oct 2023 18:36:38 +0200 Message-ID: <20231020163643.86105-17-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=philmd@linaro.org; helo=mail-ej1-x62f.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 |
cpus: Step toward removing global 'first_cpu'
|
expand
|
diff --git a/hw/tricore/triboard.c b/hw/tricore/triboard.c index 4dba0259cd..1fe6692f97 100644 --- a/hw/tricore/triboard.c +++ b/hw/tricore/triboard.c @@ -46,7 +46,7 @@ static void tricore_load_kernel(const char *kernel_filename) error_report("no kernel file '%s'", kernel_filename); exit(1); } - cpu = TRICORE_CPU(first_cpu); + cpu = TRICORE_CPU(qemu_get_cpu(0, TYPE_TRICORE_CPU)); env = &cpu->env; env->PC = entry; }
Mechanical change using the following coccinelle script: @@ @@ - first_cpu + qemu_get_cpu(0, TYPE_TRICORE_CPU) Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/tricore/triboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)