Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6D603C624D4 for ; Thu, 3 Sep 2026 05:54:04 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x20O0-0006mp-Ko; Thu, 03 Sep 2026 01:53:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x20Nr-0006hZ-7B for qemu-riscv@nongnu.org; Thu, 03 Sep 2026 01:53:13 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1x20Np-0006TO-Ij for qemu-riscv@nongnu.org; Thu, 03 Sep 2026 01:53:10 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-84e0688b7e8so1898169b3a.1 for ; Wed, 02 Sep 2026 22:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788414788; x=1789019588; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to:content-type; bh=zzHd8Swv+yj+u2BkQmCyGqXupXQENpHU2L/YRyfQl20=; b=KCujN2wR5P4OQYFEdTOY5sKXckMQTolwpxfLcYDB/v1SnEjNNApM9h7rgIGKfwTT81 nPo+QlXRaN4iAd6bK786Gt0NJwTTQlcWL26mbQOQ03GSGDiiPV1oFXJcuy5gtS195FNb zJhZktuKu3bQhTcbnNjH+3V0JWSfTBW21dSaN7CmJwE+6HN/yNY5dfXAOwJpVSYexRRs IM5vdmqvMZSrdgITu+K1Ft6ywHrXDWsWS9fmWqi+mdDOdiUK2xVZ7cHCSBRNogvTEJha zxBnsZqK39rLR+8yV0nZMo6vVHPNKswp6hGHeHaeVxdq//tIci4g3im5ziVjlIwG63Yt URaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788414788; x=1789019588; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zzHd8Swv+yj+u2BkQmCyGqXupXQENpHU2L/YRyfQl20=; b=LP12Cvc10ONnzI7DB38lzTf+fPbD9e69Wqz7JqgoBoEBcv7KDRgrXRLzeWlrYONYcR RnDqP82+EFAxsHIwbzHJ0K/AM3Pu7xf93K7ITwoLSY6bT/5fgCPmtp716AerOeXTxmDB tB8/XaoCFAokpFTuOjQS9imP5ZnTy65W4Cofmny1ad+4wlynlAWU0PItmcDBuQbOQZRo pI2Z4u7W3W0y3nFjAYVEU0f3zR7wLBSWr0h9tNN/ENfO3FAR76Wio1q6Yk21uc+0b6tf LAcTEE/QNA32yUP0yoMwKTxf5EWJ1jjCriTK/ufbo5ISeQqHSV7GmiPRsf57de6ZDQ38 XAFg== X-Forwarded-Encrypted: i=1; AKwUvBxcTynXDpEJYqyxu2KORQukOhZpqSwZQq8DDiTwqpyRtxr/nDQkgeoTMgN2LrD1YE6UWktbwDq4dgBf@nongnu.org X-Gm-Message-State: AFuF++mHQjI+31orv+ijiD208Rk6DzlcJmg5ohwd08+J9tO+V8BeIVyr e40jlNa9oRriSoMx87/PxmvL9deMpHEKCUEZO00EVHQt4xA/r4Sh55Re X-Gm-Gg: AYBFou0dACon8d7wJg7y5T703vm3DULj5TzxejX0GOtVwsv2mtILQj4riJmSC/Gb1KQ IgjZ63j9PIuaYbE5MmEH6j8Wl+0PGXlH5YRHl9dVpAAN4m+4+ygyijaYpGJ6ScP+PgVQa3MuuPC pwsobBmyCgyNbOysvw0t2NUCtNfQ3+sYNc+4wHvz9sr9hicUcb8ARHaf2hWq/OpDmvLNgqCgsiY Yc+XhnfvOe5q3pJF7cujn0uiWxE6g+5Ayi+ZOVs9CMu8RIcffwV1y5mwEus+G6hmdWFTS7MUNrO Cxri+AnM4jNEXzC1wMalsml+HA6GY40TDB86vHzp1XfRqRpKrB+RHjQXRUemK8uI4gPmUx+TGDL HTMLoBGTOJ5lIN5+fY9HPuTlG81jhVBv7Ne/C8UHlR1Kn/+TitphCvJ7fWCqcLsxNgC6z25bBm/ fJVWNSiWE6d1fdL3DVjJBIG9U1XOvcNTj0eIeL/nSwhyxAvE7LNvuA6LrzXp+741yRQ/Mx0LDCF STkMlGlxIb9/3EekbRn1O2bTzMBNlkS8keudKi3S+wFuV3o7dZd5xp4tzihju6erBW3JAz61djT COaER2w1tTiRdbZUzFZ6 X-Received: by 2002:a05:6a20:9146:b0:3b2:a809:1000 with SMTP id adf61e73a8af0-3d9ac8425c0mr13410369637.3.1788414788072; Wed, 02 Sep 2026 22:53:08 -0700 (PDT) Received: from donnager-debian.. ([180.150.112.50]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1431990a39bsm2770619c88.3.2026.09.02.22.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Sep 2026 22:53:07 -0700 (PDT) From: Joel Stanley To: Alistair Francis , Daniel Henrique Barboza Cc: Weiwei Li , Liu Zhiwei , Chao Liu , Nicholas Piggin , Anirudh Srinivasan , Michael Ellerman , Portia Stephens , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , qemu-riscv@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH v3 08/16] hw/riscv/atlantis: Remove unused fdt_size Date: Thu, 3 Sep 2026 15:21:22 +0930 Message-ID: <20260903055131.257903-9-joel@jms.id.au> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260903055131.257903-1-joel@jms.id.au> References: <20260903055131.257903-1-joel@jms.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=joel.stan@gmail.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org The machine state carries around the FDT size which isn't used by anything. Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis Signed-off-by: Joel Stanley --- include/hw/riscv/tt_atlantis.h | 2 -- hw/riscv/tt_atlantis.c | 9 +++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/hw/riscv/tt_atlantis.h b/include/hw/riscv/tt_atlantis.h index c9308aa57017..d0cca3b02424 100644 --- a/include/hw/riscv/tt_atlantis.h +++ b/include/hw/riscv/tt_atlantis.h @@ -33,8 +33,6 @@ struct TTAtlantisState { DeviceState *irqchip; DesignWareI2CState i2c[TT_ATL_NUM_I2C]; UnimplementedDeviceState uart1; - - int fdt_size; }; enum { diff --git a/hw/riscv/tt_atlantis.c b/hw/riscv/tt_atlantis.c index a2fb83aab78e..7d31294ea1fb 100644 --- a/hw/riscv/tt_atlantis.c +++ b/hw/riscv/tt_atlantis.c @@ -367,10 +367,10 @@ static void finalize_fdt(TTAtlantisState *s) static void create_fdt(TTAtlantisState *s) { MachineState *ms = MACHINE(s); + int fdt_size = 0; - ms->fdt = riscv_create_board_device_tree( - "Tenstorrent Atlantis RISC-V Machine", - "tenstorrent,atlantis", &s->fdt_size); + ms->fdt = riscv_create_board_device_tree("Tenstorrent Atlantis RISC-V Machine", + "tenstorrent,atlantis", &fdt_size); qemu_fdt_add_subnode(ms->fdt, "/chosen"); @@ -386,8 +386,9 @@ static void load_fdt(TTAtlantisState *s) MachineState *ms = MACHINE(s); char **node_path; Error *err = NULL; + int fdt_size = 0; - ms->fdt = load_device_tree(ms->dtb, &s->fdt_size); + ms->fdt = load_device_tree(ms->dtb, &fdt_size); if (!ms->fdt) { error_report("load_device_tree() failed"); exit(1); -- 2.47.3