From patchwork Tue Jan 9 18:09:19 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: 761058 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp1495307wrz; Tue, 9 Jan 2024 10:11:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbZhGj/X/nBIng8r57V9EesNj+rMNV9dQjg+j8HwZVHtqnvVlP8zu1t2/9YfKmhAUdYhxL X-Received: by 2002:a05:6808:199a:b0:3bd:437e:853f with SMTP id bj26-20020a056808199a00b003bd437e853fmr533476oib.95.1704823874450; Tue, 09 Jan 2024 10:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704823874; cv=none; d=google.com; s=arc-20160816; b=RRfL6f2ditNFdpiE+0r/rO27oW+ljn4PfIM4FtOolJ9aPkPHh7AlB0XT3HuLS+nEJf vZ36jR3Eaq0MdtxHhIhDUJiyxHZHdh+fHlwLbxmDM0c9bkQFeIVKSq77ZpvqyQ3qv+5O qiwp86VXrvjZ+x1/fMr1xS77wDbpI2yhFezukB01dhYL4Hw6nUiZPRnYlwtB+C/HKuPt HrIj4Snx6OMwSfMfvNHTiC7alSY0Rf0HWiigP8GVevSKFEy3eaURn7VQBelTM6pFCM6r psUaaBTtY7WhWlKS8mL2XYDM6wRncys7/1p5fB0vhlxkCagIhyVbl0KcO7/rqrkCn4v1 Nlgg== 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=znfL4d0kUd7PQLWgd/IbU4xVCADxWCmjPBLUUJRZlJU=; fh=v69mdd+nxs/0WeTIWzLZOPCx0ynE2o0vtvId2fSwkBY=; b=ZT8i20xzjOxvdTDzz1j2Q9ueUGrcsKJ0yDd4Y6G2Lq9n7oicSKnQs3GIizX43DMcx+ e9PqSt5JUfGn3zqTcq5hDpy7NE0qB9hQbbr0JkIxfJBr54WZVllKcLrbCE6j4mAxKHDz W1IaGB03o+eKE83Fo75geNEkM+j1ZW/a7BZ6xpZ0krHKqPUlRSU3T3+5fjfnlg89G44G AE4r2rkcikkrJQ8tuRczk4Azo53oj0nWPqyPvV6mwPGOVd6bokx9qFdU1dQm7d6b+omL p0IcMsyfsKnrVi/5VbA1dA/NN+05HYGhdeHTUjBp91M1jZEOUiWBwNHgiqNxp3Krw6om 7liA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F+I7cVJ8; 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 y15-20020a05620a25cf00b0078110c89ae6si2553994qko.84.2024.01.09.10.11.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jan 2024 10:11:14 -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=F+I7cVJ8; 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 1rNGZ2-00035j-Iv; Tue, 09 Jan 2024 13:11:00 -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 1rNGYL-0002bZ-6f for qemu-devel@nongnu.org; Tue, 09 Jan 2024 13:10:18 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNGY4-00042h-E5 for qemu-devel@nongnu.org; Tue, 09 Jan 2024 13:10:15 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-336c8ab0b20so3083139f8f.1 for ; Tue, 09 Jan 2024 10:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704823798; x=1705428598; 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=znfL4d0kUd7PQLWgd/IbU4xVCADxWCmjPBLUUJRZlJU=; b=F+I7cVJ8cjXpHMo0gMAWgxLSZMD1wYIjQ0Ia7w6O6jjdkaRXthqRn+zqb/NxG5uLFu dTLew5+4/l3qUuUpqoh1+37rkogfh6TJDgobYT5EKOtbidcU5YOIgiaNamRvajBPCStx BKFTMUwsx3xOoVsEZbTIcHM2yUHIjOOx7ERbhlaGDl/zjwvOmuzs8v93aXsu/Z2ufpF/ 8MpZ1sy+L1eMgEXAbQq6J8rkCg1irQP/3JpkEzjhwn1cqox0Pq5NMLH7no1rm0oANEVV Nzd7GgfMGDUskc7s7au2JyHj1JaExUuvJ/cmKw53r3+rXMe9TJ8yKSEZs2HeZ7KNuQTu JPNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704823798; x=1705428598; 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=znfL4d0kUd7PQLWgd/IbU4xVCADxWCmjPBLUUJRZlJU=; b=aDH7w2JXWR9VTJ5II7tgfM3AJYkJIHw+rMMymmqHq3FHPZIASpi/UAf4DjFmpmZIai XEhWddt/RpJ10oMNuGk3y5cIR+O7pTCUBm7IJy8aRWORlxwdDhvyZfVceeKzt0x+JU4Y eXN0EqTYaktDm63Fp3zOUTDaRXDi8t4XkGWe+LQp79qnu+JhYMOcl7LiHeVttmDFz3/5 3FU007Hm4M4MMtoimiGujBjr/awkF1pcF09nZylDWg8kYNK3nxSROSdSarYpFmEnzVuo vH6ufdSOWjm+O3uibY5uFYZT5spBa8+j+wvtlr+ss52PFw9u/GpJU4fRS6H6NppJM7nN mOKg== X-Gm-Message-State: AOJu0YyO71pPcIzLU/pXIExWTZbud4TkTOTKGJLkPRS0s6p9KXLSXrdh 7RIbD4uXPnjiUK8OJACw9sfWF8XUzZ3RcEy/kkIR30Qsmy2aDQ== X-Received: by 2002:a05:6000:235:b0:333:2f1e:cbc4 with SMTP id l21-20020a056000023500b003332f1ecbc4mr852249wrz.13.1704823798697; Tue, 09 Jan 2024 10:09:58 -0800 (PST) Received: from m1x-phil.lan (rsa59-h02-176-184-32-47.dsl.sta.abo.bbox.fr. [176.184.32.47]) by smtp.gmail.com with ESMTPSA id r14-20020a5d494e000000b003364a0e6983sm2975178wrs.62.2024.01.09.10.09.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 09 Jan 2024 10:09:58 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Leif Lindholm , Radoslaw Biernacki , Kevin Wolf , Markus Armbruster , "Edgar E. Iglesias" , Igor Mitsyanko , Rob Herring , Alistair Francis , Peter Maydell , Marcin Juszkiewicz , =?utf-8?q?Philippe_Math?= =?utf-8?q?ieu-Daud=C3=A9?= Subject: [PATCH v2 04/14] hw/arm/armv7m: Move code setting 'start-powered-off' property around Date: Tue, 9 Jan 2024 19:09:19 +0100 Message-ID: <20240109180930.90793-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240109180930.90793-1-philmd@linaro.org> References: <20240109180930.90793-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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, 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 Reorganize a bit by first setting properties which are not dependent of CPU features (and can not fail). Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/armv7m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c index 8900730e53..b752049add 100644 --- a/hw/arm/armv7m.c +++ b/hw/arm/armv7m.c @@ -308,6 +308,7 @@ static void armv7m_realize(DeviceState *dev, Error **errp) object_property_set_link(OBJECT(s->cpu), "memory", OBJECT(&s->container), &error_abort); + qdev_prop_set_bit(cpudev, "start-powered-off", s->start_powered_off); if (object_property_find(OBJECT(s->cpu), "idau")) { object_property_set_link(OBJECT(s->cpu), "idau", s->idau, &error_abort); @@ -334,7 +335,6 @@ static void armv7m_realize(DeviceState *dev, Error **errp) return; } } - qdev_prop_set_bit(DEVICE(s->cpu), "start-powered-off", s->start_powered_off); /* * Real M-profile hardware can be configured with a different number of