From nobody Sun Feb 8 21:28:41 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1662335001; cv=none; d=zohomail.com; s=zohoarc; b=KWfUenRGyyLhdR5ilJ5HdjNLvangfxSI+rNkEXvGeAXuwXpyIGY1/K9Sd752DRhMFhT9ayeQPuPrDyYJCdJekuQGCKxk6FVjPLPAVGfWZiUkZtRx3Nlc4cSJLo0xWlSzzM85V69DTb8QsMvBd5NjOz82tdt4BbnPxbpCLJoEB30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662335001; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=knGOKFS2756lg9un0i8XENNl/xbiU4W5WHHiAwpLrxk=; b=F9l0Cn/BLsIpDGMD4ZTh3O5covNguULVnkZsN6gh3S78Pi/bGXyLJb8ajvvBUXLwLwOBwz6yfWLChUieLL1bd9OCWeRWlV4sxnzfJYaofBZpGyfgC5X3i74nf71FTNB1XzKccrsEwH8qa0KpuariTUks6H2RVhwL9RWIA/mV7Hw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1662335001456627.1986419990538; Sun, 4 Sep 2022 16:43:21 -0700 (PDT) Received: from localhost ([::1]:45536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUzGn-0008UU-TL for importer@patchew.org; Sun, 04 Sep 2022 19:43:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUz9I-00072t-L7; Sun, 04 Sep 2022 19:35:32 -0400 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]:42943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUz9H-00057L-5Y; Sun, 04 Sep 2022 19:35:32 -0400 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-11f34610d4aso17994330fac.9; Sun, 04 Sep 2022 16:35:30 -0700 (PDT) Received: from balboa.ibmuc.com (200-207-147-180.dsl.telesp.net.br. [200.207.147.180]) by smtp.gmail.com with ESMTPSA id o7-20020a4a9587000000b0044b4acd27c5sm2549793ooi.17.2022.09.04.16.35.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Sep 2022 16:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=knGOKFS2756lg9un0i8XENNl/xbiU4W5WHHiAwpLrxk=; b=Yz3/XZKLUcWKh1DQHNk6pW+kt/790wvHxytTy2EFmHymDZ4eeCOiwn385M9Q/bA6hh PfNPyenLIbGduexYBOpmRPL71u6p0O/HsBngzzxF+apoInNi/7vpXO2xGseJiKns/wlj lwtaGMXxa8z/mtal+ntq16K+ulgwZT26OZwLPJupWzKsd0z2FFKuLZDhBmBZ626Sof8K Xu0ycw4VMT7U7kUBgNfkpKBIWFlD4bmv1fk2gCU5LwP+ztRIKgQ27yCCLGtR1ysMDJZQ FBtKkMJ00Z6xoavZmcVJLR0x316aYpZAd3TRxWpYB1dgqpDxo0gRJjJ4ECDosIBhYZtV Z+Qg== 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; bh=knGOKFS2756lg9un0i8XENNl/xbiU4W5WHHiAwpLrxk=; b=Ktix3XOcafBs2BUjrKG5Okod+KbLv0zluzYV8VqE+4PRJxxtCAbfNWPd6bszpQvLs8 Z9Yyq3mEr5ivWvK3kx1AmlEUUCW280ZWffJKiuuZS5rIRTlEyWlJf+4TKiWEKHiEwrDL ulcSMl5nUEWUiVrvuUbTO6cf7arBi41C1vjhGIEK1xRgMQeVqhUvJFs8nMGygKqYGHVH 4XEpzMqv4OtYJAP3j4kNRfzS+BNSiDcNGWKaSgQBas5QrPbSzqc3AwbOdTKZeCW88aXI 6exGqwMj0hwpcOFC4jHwOnCpvusDwT8NZ32TOs4g+pJVPUOU0hjull6WyS1QTPPjNnFu keoA== X-Gm-Message-State: ACgBeo1WAWm/It2XZz7/LtTxYwgF70L/i+3fVUD185BF2GkljZsTsOVp /jV12UQ71sR2bJA+gTmWWllsYY6RVI6UtA== X-Google-Smtp-Source: AA6agR7duh7ztBkn0VxgQd6pZKwKsKmDY3fBNekO1B56eaKBrf8gM3LnZU9TkOvDFXT0hKCM0SmPBQ== X-Received: by 2002:a05:6870:349:b0:f1:928d:c803 with SMTP id n9-20020a056870034900b000f1928dc803mr7496754oaf.19.1662334528405; Sun, 04 Sep 2022 16:35:28 -0700 (PDT) From: Daniel Henrique Barboza To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, clg@kaod.org, Daniel Henrique Barboza , Alistair Francis , Bin Meng , Palmer Dabbelt , Alistair Francis Subject: [PATCH v6 11/14] hw/riscv: set machine->fdt in sifive_u_machine_init() Date: Sun, 4 Sep 2022 20:34:53 -0300 Message-Id: <20220904233456.209027-12-danielhb413@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220904233456.209027-1-danielhb413@gmail.com> References: <20220904233456.209027-1-danielhb413@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2001:4860:4864:20::2a; envelope-from=danielhb413@gmail.com; helo=mail-oa1-x2a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1662335003343100003 Content-Type: text/plain; charset="utf-8" This will enable support for 'dumpdtb' QMP/HMP command for the sifive_u machine. Cc: Alistair Francis Cc: Bin Meng Cc: Palmer Dabbelt Reviewed-by: Alistair Francis Signed-off-by: Daniel Henrique Barboza --- hw/riscv/sifive_u.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index e4c814a3ea..b139824aab 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -634,6 +634,9 @@ static void sifive_u_machine_init(MachineState *machine) start_addr_hi32 =3D (uint64_t)start_addr >> 32; } =20 + /* Set machine->fdt for 'dumpdtb' QMP/HMP command */ + machine->fdt =3D s->fdt; + /* reset vector */ uint32_t reset_vec[12] =3D { s->msel, /* MSEL pin state */ --=20 2.37.2