From patchwork Fri Jan 10 17:32:15 2025 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: 856269 Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp345539wrc; Fri, 10 Jan 2025 09:33:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU5tmUl/I4+0bxiOJh373cNyd0vx84Npa9a49eEdUvY/scRSEjRcGoOCcRQhsSxIgnZra5csQ==@linaro.org X-Google-Smtp-Source: AGHT+IGoD6HfAntBM69KZIYQ8u+rNHPajY46ObG4FwkfU8Fn28ckX4OYsW+Ik8+sGfI9qwGM1hdd X-Received: by 2002:a05:6214:d64:b0:6d8:9660:8877 with SMTP id 6a1803df08f44-6df9b1dfb0fmr201494556d6.18.1736530388048; Fri, 10 Jan 2025 09:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736530388; cv=none; d=google.com; s=arc-20240605; b=cq3K2qO6Q6FJ+EmihG/5JS/1INFaQaGwjm/8wnKGmebIVaIOuZtPR9U1SBjMTus32t 6bE5dVAzbbqKxbwyR6LlemKdfWcqdeL7NoJKb0jCIyACf1D+uRmNLMEfNK/ZQ2tx9ejk 09rc2QsaaCdtffZZMBdsI/Z0u2v15WYvQ/U1+dghyVzgliHPd2xxC12gswXye/k0NTk3 7R+qSZK5Wfgf/6RbV7RRmSi/iFcS2TxAqhFVO1a4bN7w/i942D5JuhwSJsgj+NQxMNds BFNifs7oeo/kRevCXoKzn8bltmkdbbKgDlDQxRajsJtB8pe97WO+zbsW+GI9egE2+oro IsoQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=1geqepvWjvdNv6MYjhswXQ/0iKJo05ix/ma33tjNerw=; fh=FgOHr1JLjn5gDuVLjDE9qQ+3Zq8rpKvSSD5fv0m1jKE=; b=Xoly5muqDEbrXwRz4/vcH/2UhXr1F0LF7ma2YzYG+UhGVJQsOy2vjvgvmCPppZDljt Yvons/iBxqqVyJrXBHAB2BzO9dc0oq/TTdXTPqYEFBP6jm40f22IaDSZu8WTfuJ1/vMG 1lmU3qN+arGWcjKMmsp7rh07BgQtIHKg12qYK/K5t+BNWNl7J2CcCpqZmpYwof4Cly1w jxv7VayfJIU0PTDLibv7+HxImXV2Wr2sG0NhPrlpQQABDqvRBiQBCv3j5Rv0WcDafOIs JPIzFP11hmYPmwQ3JldiyFT0RKu5toDmxGOucfv79Jymu/r9HBtSr6bBbsgHh1KCh0zY aEtA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GUSanGj+; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dfad8adbd8si28039846d6.100.2025.01.10.09.33.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Jan 2025 09:33:08 -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=GUSanGj+; 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 ) id 1tWIs6-0005Tr-OC; Fri, 10 Jan 2025 12:32:38 -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 1tWIru-0005Ss-TX for qemu-devel@nongnu.org; Fri, 10 Jan 2025 12:32:23 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tWIrt-00008k-6i for qemu-devel@nongnu.org; Fri, 10 Jan 2025 12:32:22 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4361b0ec57aso23146265e9.0 for ; Fri, 10 Jan 2025 09:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736530339; x=1737135139; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1geqepvWjvdNv6MYjhswXQ/0iKJo05ix/ma33tjNerw=; b=GUSanGj+NaHKdfEECf1wi4u/5fJGwlK4cTe6zdyJ00jPFurhPBO0eWoCVlllUBEuna QnZINmJAIQ5T992YUtTbwMgYV70eXCVB4pTcICmkYRxUIPoaoSZUcNCS0np9XlKagNny 8r9voF+ZlH24fBxuwHrMv0rCDksBU2XQaZuSKxNi0933cAIwEr/C3mH4BOdaN8MTa3br vr/dSGaIa9ZQppRf/TaWWcQdjgEzMq5lZiGXOy+KNBvpV1F3gI84Y3vdWL2pUptvsjni 7ZklZD9o0A930YGRymg/b5lo+VgYLoe9fZ/wpmNFhR8AaYEKFGAqshG6TzKypMIF9jyg pxpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736530339; x=1737135139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1geqepvWjvdNv6MYjhswXQ/0iKJo05ix/ma33tjNerw=; b=fnGDL9QH9TZBRtXEvEtDUcOW+g4k4bTuKsjNOxNMFauwz8o9x7dmcjkq5BcxEQuhSz lH6ximMZa8vxgWZgbf6XVV5XXWu4XJhuWP+NwOQqCFCY+kamSAWXnGAwm/xaXiFksk8H 6wVRGGAPUAB11ndv9hGlLOnFs+/dxaQjt90iyhQgrA3lOig4v6gQUCgdEfGpO9ZTOUw4 iQcD8MIanH3mvwhipNmjHxCc8oZtOpOT+BzzKw5mo6D+Mz2T5piPLcV4WLb7Ap/Ew0ni 3VTqwqAgYFip5oBlEv1amjonInP9olyAb3zpcNg2g4dkLqyolryOGk14D3kjOKqZhROJ NLFw== X-Gm-Message-State: AOJu0Yy88qwGCNY8WCGfijuF/O5SdkiHeq5q6p1iBiL9h3j5UCqe6FNA E3mXZzNfYEBD70F2Lmv5GHMDV6vbkj01GHSsR0lxv+K8RGrVBM63bbmi8QMpDHVWBrkG7xKPpbB ZIPA= X-Gm-Gg: ASbGncu17BvZ7fKlmF759Y2pgguErWAYJAf1MMyInYLspLIjEJBeHMs7w7q1gBChhcw CEGvFNAa1K2RGJlmrPR8/rp0dWwSLM7VDtOOL2kOKenjqJwmhou46OY9pkfx5ACRGBajm1B06iV C2E5ZBDhI3OIGh3tV5wVhNQUw5SDiAYrkzg+WqPOjXcwpEiBbibrXZyVO1mTcPBYjkj0qwzEFY/ 1h2sMV8Yf1k5VdNrKX8qKaI5ZZYwushPpgr1RtoUocyFtr0OcOKVOMA4LjHq1yvy1RgPAehfEYn k1ONoaYLinqKafUQp3Q2FdDx33dMxMQ= X-Received: by 2002:a05:600c:524f:b0:435:d22:9c9e with SMTP id 5b1f17b1804b1-436e26d0cf9mr101839715e9.19.1736530339335; Fri, 10 Jan 2025 09:32:19 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e383965sm5142998f8f.31.2025.01.10.09.32.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 10 Jan 2025 09:32:18 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Herv?= =?utf-8?q?=C3=A9_Poussineau?= , Gustavo Romero , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/2] hw/ppc/prep_systemio: Remove &first_cpu and fix IRQ use Date: Fri, 10 Jan 2025 18:32:15 +0100 Message-ID: <20250110173217.80942-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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: 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 - Pass the CPU from machine as LINK property and remove one &first_cpu use. - Call qemu_set_irq() in ResetExit handler, not in Realize. Philippe Mathieu-Daudé (2): hw/ppc/prep_systemio: Use link property to remove &first_cpu hw/ppc/prep_systemio: Set IOMap IRQ in ResetExit() handler hw/ppc/prep.c | 2 ++ hw/ppc/prep_systemio.c | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-)