From patchwork Tue Jan 23 22:25:05 2024 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: 765208 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp1834215wrx; Tue, 23 Jan 2024 14:26:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOWIXKddp5imXphkkRY0AHAFClsYt0T4m/c5NQJG6tEBc9HnljE08h90QSHGC6TeeRd3T6 X-Received: by 2002:a81:6e05:0:b0:5ff:869f:e465 with SMTP id j5-20020a816e05000000b005ff869fe465mr5945673ywc.68.1706048787803; Tue, 23 Jan 2024 14:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706048787; cv=none; d=google.com; s=arc-20160816; b=FHwkLZCT0A1ndcP/OFP+bYs8Eu+jO7I470CwOJSmbgEGwGt5qQ4jxMC7tZ05JEKqHp DtB1i4W2LTqC4a4EPJB+VFgwbZxdf9tDLMRI83aEnPEGJgLkuLNWwqhB6CqTmtdX5Fuv c+8g8enMudy9oLkYZbaaHVvR0Y7QZ1V6jir3Kg+09VK1TlJ3Ci2AWl0oOQmAoivr7d7R JlUXvjo5fS1Zwp+lG/V+eVXfyddYAZq7Okub8w2W2JL/vXIbVgZDFd9FMmTBBvTWlU8e Q0YY/HuPbUGUNoPWVKmEMAQwDeCcq50+pTndA/00sdH+NnNsYo60LOBI89O7jFmJrYqs achQ== 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=Cw3bjLOiGxm/gmaq73KAUTSMcDh1pUeA2J6w4VTjYkA=; fh=vCRQ4SxBRaw/scGiJ+6DsMj2AC960SBJLYr7612eZsc=; b=jLudxOnEgPSwrLDSWPr3VKoRfZPNRQgT7tq8A3d2ag9nS5vOmWGYo4zO/OJUJ/++3s j6tbXZswcSnCduxJiQk7/o3Qn61kPs7Ioc5TDB3q04PheiuJO5JhOgTfbZ+m10BMaePq mkn/yhMZqmlf1U1qwXOZm4DdGRoLHfwyqBRlHUkVKTB4jaZpKL1Kun+Z7YClhMgNoWGN oaIMGFjMMXQ1islhf43NKuGekV1EN2lyNlXSVQT24ltaeyC/MFftDAYaN1BGq0xPpotx zFxV01XWrS7Ljskd9Yx/X/koHEEF26xA9qNciEfpUQBQvvc71hqozS6uLX18eSzm+n5Q wdBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DmqCJt2U; 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 c13-20020a0cca0d000000b0067f8c4235f0si8910947qvk.415.2024.01.23.14.26.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jan 2024 14:26:27 -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=DmqCJt2U; 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 1rSPD4-0005Oh-9a; Tue, 23 Jan 2024 17:25:34 -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 1rSPD2-0005Mm-K1 for qemu-devel@nongnu.org; Tue, 23 Jan 2024 17:25:32 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSPD1-0000xw-3G for qemu-devel@nongnu.org; Tue, 23 Jan 2024 17:25:32 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a30e445602cso120764566b.0 for ; Tue, 23 Jan 2024 14:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706048729; x=1706653529; 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=Cw3bjLOiGxm/gmaq73KAUTSMcDh1pUeA2J6w4VTjYkA=; b=DmqCJt2Ujlz0/008flJ1wr4ShztXRQhmCqLSLaqngWB3dbcJY0Elg9BKvWePZ7Zrkp 3Fub6gDD3Pq2EvKciTwwuGjdBQsNVf6JrWe5awIDlrL/q6ljTp9qIT4vAM2iMNyvBfxa cP7tmp1RuFalCDWwvfIfjRaT68GPlGFWIuZP+78+Bu8dxKO2cafxBGOttQP09f1nS+M4 AK1InynfNo7SJh/6MGIBBRz7et/VtUeIrvOmux4QQQgsUhe8nHJmoOwst1oE34/DnnhC Ot5EN1f05IdOMrNW+4Mhw6NGX6WDtPEbb0E0bhq0aIClPew5KRAEP3deu+eN8gWp4wV+ JRAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706048729; x=1706653529; 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=Cw3bjLOiGxm/gmaq73KAUTSMcDh1pUeA2J6w4VTjYkA=; b=BJYQme6j5TYgykKlRSkz/k2LZDv0uEJkM/LCEYbfSfqbtbalkIf0Aj+CRngk3l6Spx syGOaFh+IK0unrG+xJpOZ2ZkKC6VzWulzbbbwn+MTsQoAYUgliHmdE8R5ntHKOJFxME8 r4jQk28C7ns3AXu7IhQEg7OAvig7GTNWbrDRFcAHqzKsirhmVOZNMzjC2k02Dd1c/0jM 1mN1umOdQ1AsFJQaAqghIjXP94BYcRitSXEKGKeigqbQuYPjkiCs97QF31Fy+p5nOCyv /htiFMbREBVrLfNfsREvmF12RI7getNscNZASEkQHBoLTuYP2Pfvsjjt9tojqAEn+aIT ru6A== X-Gm-Message-State: AOJu0YxEeddguOie+jWf8m5Wz8VWOfiNGcNTsa++cBjzaXb7e7D8YlXD Fxdhmuvz4xilfaRFD2AO9UHDAVmdjgSPhliX1Zuov5/NZ1MIlVPSfP8C/VmG3VqvWV97mRHJfBm S X-Received: by 2002:a17:906:3ca9:b0:a2f:ebb:f200 with SMTP id b9-20020a1709063ca900b00a2f0ebbf200mr196156ejh.9.1706048729352; Tue, 23 Jan 2024 14:25:29 -0800 (PST) Received: from m1x-phil.lan ([176.187.194.78]) by smtp.gmail.com with ESMTPSA id gu25-20020a170906f29900b00a30dc39aac3sm667245ejb.157.2024.01.23.14.25.27 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 23 Jan 2024 14:25:29 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Igor Mitsyanko , Rob Herring , Joel Stanley , "Edgar E. Iglesias" , =?utf-8?q?C=C3=A9dric_Le_Go?= =?utf-8?q?ater?= , Andrew Jeffery , Gavin Shan , Alistair Francis , Igor Mammedov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 3/6] hw/arm/highbank: Add missing QOM parent for CPU cores Date: Tue, 23 Jan 2024 23:25:05 +0100 Message-ID: <20240123222508.13826-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240123222508.13826-1-philmd@linaro.org> References: <20240123222508.13826-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=philmd@linaro.org; helo=mail-ej1-x62e.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, T_SCC_BODY_TEXT_LINE=-0.01 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 QDev objects created with qdev_new() need to manually add their parent relationship with object_property_add_child(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Gavin Shan --- hw/arm/highbank.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index e6e27d69af..b8d702c82c 100644 --- a/hw/arm/highbank.c +++ b/hw/arm/highbank.c @@ -209,6 +209,7 @@ static void calxeda_init(MachineState *machine, enum cxmachines machine_id) cpuobj = object_new(machine->cpu_type); cpu = ARM_CPU(cpuobj); + object_property_add_child(OBJECT(machine), "cpu[*]", cpuobj); object_property_set_int(cpuobj, "psci-conduit", QEMU_PSCI_CONDUIT_SMC, &error_abort);