From nobody Mon Feb 9 21:12:23 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; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1760718095; cv=pass; d=zohomail.com; s=zohoarc; b=JaoIWQaEuD6hVvdKutuEeOIcfMrRUvXGrStDpiHH7XktQdXmpMMJDyI80qxoHN8OxDbyEeJ3M9XEk6ZfDBnIxTMUlIJoukMry5f/MuXUU4SMQtQ7VxGstAcS0jLmfO3RMscEmf5cls8XU/AH1QSwTngZJfIgO2xpGSV6aZMsh0Q= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1760718095; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=TyZTe82I9LNu6s0C8IbsX7nzfESH2ZT4972Ow3dfDt8=; b=CLwAy+6wSUVeh0tNfJFeA1I1uwvDEsJ74KwRT8DIHB1BHwOdOqOpzMV02JcAH/MoM+XPizJGAyhmkipxEQrqmJF09eiGQGKyxWeh46dT+JBagWfjAcZdojxZPtgRHXfAUZh6ulHku9x0VnrTm0/sDQZ9MmnmotHbb2Te3JfM6sA= ARC-Authentication-Results: i=2; 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; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1760718095704585.3556247608847; Fri, 17 Oct 2025 09:21:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v9nAb-0005Up-Hc; Fri, 17 Oct 2025 12:19:09 -0400 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 1v9nAU-0005RI-Rj; Fri, 17 Oct 2025 12:19:02 -0400 Received: from mail-northcentralusazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c105::5] helo=CH5PR02CU005.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v9nAN-0007dT-Cg; Fri, 17 Oct 2025 12:19:02 -0400 Received: from PH8PR21CA0018.namprd21.prod.outlook.com (2603:10b6:510:2ce::8) by DM4PR12MB8557.namprd12.prod.outlook.com (2603:10b6:8:18b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9228.11; Fri, 17 Oct 2025 16:18:39 +0000 Received: from CY4PEPF0000EE31.namprd05.prod.outlook.com (2603:10b6:510:2ce:cafe::1d) by PH8PR21CA0018.outlook.office365.com (2603:10b6:510:2ce::8) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9253.7 via Frontend Transport; Fri, 17 Oct 2025 16:18:42 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by CY4PEPF0000EE31.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.7 via Frontend Transport; Fri, 17 Oct 2025 16:18:39 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.17; Fri, 17 Oct 2025 09:18:37 -0700 Received: from satlexmb08.amd.com (10.181.42.217) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 17 Oct 2025 11:18:37 -0500 Received: from XFR-LUMICHEL-L2.amd.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Fri, 17 Oct 2025 09:18:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VONYzctGqUeP1e83UBr1NlkllOtuKwbsHEUcCdXKhkLROYJnQfGeX/RAff0FUWN2OEMEyQgDSL52Ssl350ZHvcOS4GQchEtZCtmTM72gw7JQeJ308iLPeMe/ouOM3iYOUGoUb4JHucLDKnUFYa1piYD/JA+doh6mN/r5DQ/WA6iGirHdSSnRHxQU5Hhe7vP311bz2HFyTapUccXn4MYuVKeFsWWe9cXOWvWxqynxFVcGleUCDO3/oTnVI8NqyBjaeXApl+GC7bI1+tfwfAEwTD6qHvM9ZTCcBuzHzvrVDKX+5CP/MWbo4pNF1RXSuARQ/KDwtzx2XoNC1jrfchN5lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TyZTe82I9LNu6s0C8IbsX7nzfESH2ZT4972Ow3dfDt8=; b=HLMOP3g1Fff7YbN/zTPwnIDbsx9mm4cVcTrraaR00dheOxYHIyn4uAnqOeSrsoTRy01LDlXa757GDom2RuF/47e163vYDospxWJ91JROjhu/fPyptAoNVp1BkDMznsdl9yiyOQFEc0Qsl7TUukY6pKTkkuhv9/LkvTO3rGs/We/I+fO4sW5HmMuzJZOT+cAhMH2+nS4a9PjM/vRkcXgEEBnHkbQhWuu7jSIk5LTmAgxgCpUUmAURlKulCAvtliQpOigpHZPhl3O8lH2fibbUr01HGkZfQP1D9Qw9+rut1WbwM9Sk0GPGoTdWd++H0tNv69Khbe8uogHoD+yPfxKEDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=nongnu.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TyZTe82I9LNu6s0C8IbsX7nzfESH2ZT4972Ow3dfDt8=; b=K6jhiLZXe8TAOfq1O3nAueouxbyzeiBUVWSbALKwKpcMeIbVsOeba987YQsYozDfGP2F0X/Zn/Hyy2iaBAd1yEXQTd/UNLLYkdOVfR0MDRRIfqKAfJLhwFkgn5XXzCfUhqOhX3T//GuJ51O+Fya1/xR6C2elqwlZi1g6+1WEkKw= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; 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 (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C From: Luc Michel To: , CC: Luc Michel , Peter Maydell , Francisco Iglesias , "Edgar E . Iglesias" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alistair Francis , "Alistair Francis" Subject: [PATCH v3 4/6] hw/core/register: remove the `register_finalize_block' function Date: Fri, 17 Oct 2025 18:18:03 +0200 Message-ID: <20251017161809.235740-5-luc.michel@amd.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017161809.235740-1-luc.michel@amd.com> References: <20251017161809.235740-1-luc.michel@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE31:EE_|DM4PR12MB8557:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c5fc49a-f1ac-4a1a-9bc3-08de0d98d4e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?vTwBFxDciJ5I4i6Mi86YA/q1FsT2B0KFSd5e34tmJXLAMi/gtrfNZM79LxLW?= =?us-ascii?Q?PnIdUjD877gDbUpFUTmTiX1aVkkYYCqXp7OpTJHO0yl0XclBe48Fzp0ZHRkz?= =?us-ascii?Q?pHqgJuJQIka1RRl2TJHMOZt4j+s3TXwj5VUFCEcC+BlYjROt7oSdhXGK5DxG?= =?us-ascii?Q?Kj1D1iRvY06BfXoVQQRB03G1tuGsdEDE292hH+tMlgk0NAwqdp6H41rO4Kzv?= =?us-ascii?Q?mT0fhlQL2JA6RkMLB4WDl9aoyRwRScjQ5zEtT0IOLKghwnhdePPXs+Y8eF6k?= =?us-ascii?Q?y/MCKC2BY7+u8CpO84vap3IpDiXVQaDwYbrA/spyFzbTQ1kgC577fHuK63C/?= =?us-ascii?Q?l+15DCFSAsaNewOVlsBSpQWOu9laT8ziewpZg+Z98mGxzQYSZoEoR4JaBssR?= =?us-ascii?Q?fy31SsYwM5js/yqjDJeYEoKsP471JYPZ9pH1FFuKNzih7fWGxaMXV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7mJznqOTtEMRGYU/YstLnEiB7Nrc0dQklTEiWeh?= =?us-ascii?Q?6HvwR706vhn5R3lIRLcA2MU5wYCAy1lD7Vc2hDAzdkyPq+qXrSWVu70PLqI5?= =?us-ascii?Q?S9+5ivEPUFCJb3faq5iYY/M3bqMTQjzFlCZpQuJn4JRMb8DUpfv1SAa6Gt5h?= =?us-ascii?Q?ODIicY4BInaBw6BNwC1bWVpxUBqCK8F6futNEqzIFlkY570ywlUM8TEbYYsS?= =?us-ascii?Q?E4yXQiSCWq2AyM8q0hI=3D?= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:satlexmb07.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2025 16:18:39.0251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c5fc49a-f1ac-4a1a-9bc3-08de0d98d4e4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE31.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8557 Received-SPF: permerror client-ip=2a01:111:f403:c105::5; envelope-from=Luc.Michel@amd.com; helo=CH5PR02CU005.outbound.protection.outlook.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1760718097369154100 Content-Type: text/plain; charset="utf-8" This function is now unused. Drop it. Reviewed-by: Alistair Francis Reviewed-by: Francisco Iglesias Reviewed-by: Edgar E. Iglesias Signed-off-by: Luc Michel --- include/hw/register.h | 14 -------------- hw/core/register.c | 4 ---- 2 files changed, 18 deletions(-) diff --git a/include/hw/register.h b/include/hw/register.h index 65c82600e06..7b0f4c8b7a6 100644 --- a/include/hw/register.h +++ b/include/hw/register.h @@ -207,20 +207,6 @@ RegisterInfoArray *register_init_block64(DeviceState *= owner, uint64_t *data, const MemoryRegionOps *ops, bool debug_enabled, uint64_t memory_size); =20 -/** - * This function should be called to cleanup the registers that were initi= alized - * when calling register_init_block32(). This function should only be call= ed - * from the device's instance_finalize function. - * - * Any memory operations that the device performed that require cleanup (s= uch - * as creating subregions) need to be called before calling this function. - * - * @r_array: A structure containing all of the registers, as returned by - * register_init_block32() - */ - -void register_finalize_block(RegisterInfoArray *r_array); - #endif diff --git a/hw/core/register.c b/hw/core/register.c index 1612ad174f9..81316d48597 100644 --- a/hw/core/register.c +++ b/hw/core/register.c @@ -320,14 +320,10 @@ static void register_array_finalize(Object *obj) RegisterInfoArray *r_array =3D REGISTER_ARRAY(obj); =20 g_free(r_array->r); } =20 -void register_finalize_block(RegisterInfoArray *r_array) -{ -} - static const TypeInfo register_array_info =3D { .name =3D TYPE_REGISTER_ARRAY, .parent =3D TYPE_OBJECT, .instance_size =3D sizeof(RegisterInfoArray), .instance_finalize =3D register_array_finalize, --=20 2.51.0