From patchwork Mon Jan 29 15:18:22 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: 767393 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp938687wro; Mon, 29 Jan 2024 07:21:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2YVLNqh8PAp8G3VTJbKCQfObYzpqOsAVDk2wiJDKa19/v9NVVSkSYUSv6T5FYmPD87C8j X-Received: by 2002:a05:620a:918:b0:783:82af:f516 with SMTP id v24-20020a05620a091800b0078382aff516mr4625387qkv.62.1706541661941; Mon, 29 Jan 2024 07:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706541661; cv=none; d=google.com; s=arc-20160816; b=iwqDpy8PMNfSrJFYlk5eQLYzksRuroEfGuXQdN99iKgqLhMOsHTbjB3g7ulfQzBTPA WoLj/grYykS63kdZnZSPSq73Rwqj8p7EeRwJZSU00sgGvsecvORgwDzuciIKXydL6gXF UYlc3bI+G9rKUUx2FJl73vH91FBzy9Lt1Sy3qIwxwlslHIxrX4lr9MKqezILVhMUH90o zz3Voa2w7i+wVepieGcXPxqxm1+jblBTGBIUlTpcQAFVhWGOXQ0G5tEoEDW/BbC6juZx bsrA+39UHy9suXTwuldTWKNSicp2hGH1qmfQB9IZH7CfNx7xmKB9/FTV5aX0Y3lNKI+G YoZw== 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=jC58YmpOm3xZcOtP9AEc7xhs85+MVmwSSZ2Oh6qeQAw=; fh=36wJ/nYrPLZmRQQgalgeL37C59AM5Zbikh1oCIbsvWY=; b=v2yBY8mWBVxtkvtg6AeJ5Pui+gIYHN1rLVl8S1NEvVL8fcVw/A+yKkxb4Q4zLvEvQM fLdJilpLscoTCvsaa0Gxokx2ITqYqElnO51lOtfHFf8432sgP05Phqe346MTifofF3Rr Rk54SAcfj1lM43CEp22SxB/kWflv5rvZvCm+gVuP+AWbv2GHLTXrGlgn6Tmr0jFUjYA9 mp7elyawsVXWKCuJQi9qZicrcKCiSJp2w1naiVeZFFp1Q8gHQl2aTCLEIhgqwEEIPvuW 0nzIt8uR49c6DKVH7MIZPRJE4drqw2M1etZ36Wu1Y/10JZc51YOuI3CDVbT2jVT1OrMM v3LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SvNVlvaK; 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 c22-20020a05620a165600b00783ed964a6fsi4764657qko.489.2024.01.29.07.21.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2024 07:21:01 -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=SvNVlvaK; 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 1rUTPg-0007bl-WE; Mon, 29 Jan 2024 10:19:09 -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 1rUTPR-0007Vp-T5 for qemu-devel@nongnu.org; Mon, 29 Jan 2024 10:18:58 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUTPP-0007Rs-8k for qemu-devel@nongnu.org; Mon, 29 Jan 2024 10:18:52 -0500 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-33af3c7ef60so507682f8f.0 for ; Mon, 29 Jan 2024 07:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706541529; x=1707146329; 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=jC58YmpOm3xZcOtP9AEc7xhs85+MVmwSSZ2Oh6qeQAw=; b=SvNVlvaKbHPd0DMHsuvn3DyYp/g1jZwlBJMNaocTvAkQxkA0txbZ7h0fwqWWLed5P9 XziHd8/Os9rIEjRe4oEp/SOLcOohIPXLwB+G1ypXXjn+iWKV7xXiSMernT/S328E+l3o 2JHpswy4CIdzLtLhoxDFB4x0dz79UhajbEYB0rBHsZdlAckv/BYfNIC1aC94/o8Kv4nW J98W0FjV+qS3fw5+HHYFBGi0yBH7AOYrn2xifNaUh/POx87GxFm6dn8k0nktatmbyZCu AbjDRtokYe7Mz4g1OPT1ub1iCT3KDp35gel0jNMKnml561ZqbK6A00z/E4SWpV9sfmKq 5GfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706541529; x=1707146329; 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=jC58YmpOm3xZcOtP9AEc7xhs85+MVmwSSZ2Oh6qeQAw=; b=R2YdDZjxzJEqEuRN10RR+e5/Pvu9ZalX5LsK3rDOh/C209AoWbEVxlPJ2aSDMksXhh BZ36N6jXU2VOM9wS6wLnmoEsw68m0+onKUgEf1i4q060BReogv4o5tedIvRICAZfOI8b fcVzKrmU5qL0TLRz/jMWYVP8mK8uWNCLCGnnqOe6KWuGZ4OJPpoAVLB7QZn3YUyRME+h FIfnU6mil/TSr8VTMiecFaeHC1fYFH0df+1k3q9MFtGUQhg2flJgpFvWQ/YtNruCowbQ K9gaVZvXjNZEgEVLIP8MwJ6dOlYGFnGfXewLd/Qo54hwa65RuedqgTDAc0bgJgspskhc LWJg== X-Gm-Message-State: AOJu0Yx2EAhjP7x0T8g1dN2T4doQMhqG8dZv7yITQD3bdsC5YbFPh2Zm f0weDrpNZPAlokWGPdFd42fA14yjhQXkUUssKnyrwEq3zlLNXIWUAX9zICOiIX8GzhxzRyo6tn4 w X-Received: by 2002:a5d:4fc4:0:b0:33a:e2d3:c3ec with SMTP id h4-20020a5d4fc4000000b0033ae2d3c3ecmr5192736wrw.60.1706541529826; Mon, 29 Jan 2024 07:18:49 -0800 (PST) Received: from m1x-phil.lan ([176.187.219.39]) by smtp.gmail.com with ESMTPSA id en8-20020a056000420800b0033940016d6esm4250778wrb.93.2024.01.29.07.18.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 29 Jan 2024 07:18:49 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Tyrone Ting , Subbaraya Sundeep , Alistair Francis , Igor Mitsyanko , Hao Wu , "Edgar E. Iglesias" , Peter Maydell , Rob Herring , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , Gavin Shan Subject: [PATCH v3 3/9] hw/arm/highbank: Add missing QOM parent for CPU cores Date: Mon, 29 Jan 2024 16:18:22 +0100 Message-ID: <20240129151828.59544-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240129151828.59544-1-philmd@linaro.org> References: <20240129151828.59544-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.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=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 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);