Message ID | 20230203180914.49112-12-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp971385pva; Fri, 3 Feb 2023 10:10:29 -0800 (PST) X-Google-Smtp-Source: AK7set+To31u4bGtlpxm+VhLNfMRvKxOUl0pXw+RwBO7AKJmpm5tcZtpBAqMPIStyLjqq/KGLdF1 X-Received: by 2002:a1f:ad4c:0:b0:3e8:d54f:599d with SMTP id w73-20020a1fad4c000000b003e8d54f599dmr4443740vke.4.1675447828911; Fri, 03 Feb 2023 10:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675447828; cv=none; d=google.com; s=arc-20160816; b=PE6oQsK/U1NkmjxggGog43SDMSzp3wGF+CWWo+BX7wrle0hI8iC4zhOdhISLG3ZYww 3Fv2/Tt7aAw4JipHIVMepfAP+5drYJMMCprYFKEkktqf83lLxL6Yuq60Y+7uBoKzZ881 VRCxTy+vaxvVKD1zpOr4Wpw8IBw+R0rAmaeuulzkytc25YL3ryoH23tJXCvL9ENvFLGo UlxSm949OZAop2dCwlJolUdOH9AHu5ZqOvQNO5gekrbzx+ZnsHhv+AexZrq0ckcLjTBi Af99Lv5ye/jZAjOWQ/P7EPFd1WYa/gAAk43vYga6K4pxpYHdIAwP+4Hqqaxbqp7BTy8w fpxg== 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=Ok2EOjmCsX5+0JFRDcAc0OAjSODkQVsQacDzbNlLsUU=; b=h3FXjJPcywrUugfm6FpwcQRUbOKcvd7cddQGjYiqw7TgFMkmE3o6WrZB4FbontGClG /qEe7EgZkU3+vLATyHtokA1EXG5Xzb8C9NR/kSNfQ/gHqk1A+A3zyIcf/TKjyqK5GxB6 Y7lmvNNcoXvpFW5tDxuaDUkm2yJgYOLOjY9c4StCn2siQYLGunB1DXTacYhLonTeGKkV wabYiCnzdqjm+4Vq1UghxpTxlrVNpFWuJ7aH2oZw9UyRPCDjt00imm0Xw9tU90tXkXV8 UM1mnceZtAeO6RmyKTbiRsDj2mjCH6aWk79FRprD6xUdb7H/jGA+BLzJFtOjLrs91VYu SrlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OOnbn6Jl; 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 o9-20020a056122142900b003e17b73c015si919415vkp.212.2023.02.03.10.10.28 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Feb 2023 10:10:28 -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=OOnbn6Jl; 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 1pO0Vx-000091-Jr; Fri, 03 Feb 2023 13:10:21 -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 <philmd@linaro.org>) id 1pO0Vu-0008EN-2J for qemu-devel@nongnu.org; Fri, 03 Feb 2023 13:10:18 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) 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 1pO0Vr-0008VI-C1 for qemu-devel@nongnu.org; Fri, 03 Feb 2023 13:10:17 -0500 Received: by mail-wm1-x32c.google.com with SMTP id n13so4494952wmr.4 for <qemu-devel@nongnu.org>; Fri, 03 Feb 2023 10:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=Ok2EOjmCsX5+0JFRDcAc0OAjSODkQVsQacDzbNlLsUU=; b=OOnbn6JlbCfgbp0zvxoEEPom4S1zlra/nWKhZprQuQcB93S0slNfRCPfqQhtYlnw/o ziKsKkqNan8Vfv5imJgY4Jw7CasKv/EDzEQonEC2w8VtX91IqBkBrbQ3nP0k8ECdRZlx R/TfnZUhQJOkSzr+x0A3B2UVWfVOIo1cRc8D80NXPEI7HiRBmb3HwYbGF64FTMn00nhx skysicGeHnqJcEc8skdRheNE+blwx/89csVZX37Cd7NCnnbepduw21g3mxjtenVuvuRJ z9yKkyA1i85aXJb3NlBkYAJlgSEMOXGsCb0pplDWz+R59y/MZoiVH4xbL5Ma0YDBj7QY /DJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Ok2EOjmCsX5+0JFRDcAc0OAjSODkQVsQacDzbNlLsUU=; b=aovGCnrfiD/wF4yRNjS8bDxh7CXDAdPQ342Iuu7PYMdseVQRoC9GKgnkeh7VmYKQ/b hUV71UQt9Yo8bVZ7VJO3GSCGJO5H86ApCI8rpTTS7EUjIjr/cqSNFSOmNwQ0EVu8SPfX Q/2cHULZ7bY1IPiJQGPrM/6EElbH++vLgkTqot4GaxeYFFWSoyW/oqSUQxoodiE730ho GlA2+Onu7PlAG/tLd80UkEfyLfUEj9Zt0Vhbp9IGAmOINm0EoPXF0CtHDxuN9cR+oYzG 9NS9kCszUz1dK4qaBRNjexZQoQWEY4Sj0kI7uCq8pv1hlWpOLrFm1egWzV/oVLT3P2tI BrTg== X-Gm-Message-State: AO0yUKXXrYLQ571fxKpDPxF/vA2AkCiv2NI+zUZnDBP97xSwAu/QBsYx hqZl6pvNz6GVYNNEY/eHYKBLuH8PHvmzBEcQ X-Received: by 2002:a05:600c:3d1b:b0:3db:fc3:6de4 with SMTP id bh27-20020a05600c3d1b00b003db0fc36de4mr10822625wmb.35.1675447813544; Fri, 03 Feb 2023 10:10:13 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id m5-20020a7bcb85000000b003de8a1b06c0sm8588291wmi.7.2023.02.03.10.10.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 03 Feb 2023 10:10:13 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Markus Armbruster <armbru@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, qemu-riscv@nongnu.org, =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de> Subject: [PATCH 11/19] hw/hppa: Set QDev properties using QDev API Date: Fri, 3 Feb 2023 19:09:06 +0100 Message-Id: <20230203180914.49112-12-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230203180914.49112-1-philmd@linaro.org> References: <20230203180914.49112-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::32c; envelope-from=philmd@linaro.org; helo=mail-wm1-x32c.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=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: <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 |
hw: Set QDev properties using QDev API (part 1/3)
|
expand
|
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index de1cc7ab71..6bd6a8d722 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -166,8 +166,7 @@ static DinoState *dino_init(MemoryRegion *addr_space) DeviceState *dev; dev = qdev_new(TYPE_DINO_PCI_HOST_BRIDGE); - object_property_set_link(OBJECT(dev), "memory-as", OBJECT(addr_space), - &error_fatal); + qdev_prop_set_link(dev, "memory-as", OBJECT(addr_space)); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); return DINO_PCI_HOST_BRIDGE(dev);
No need to use the low-level QOM API when an object inherits from QDev. Directly use the QDev API to set its properties. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/hppa/machine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)