From nobody Thu Jan 8 13:17:16 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1767129013; cv=none; d=zohomail.com; s=zohoarc; b=XQETKr8Q1yviBrmdj3I6Scn94ZZLz5H9sZrSRd2nNvrU0FSbaoKHx02SPBdgPIeU6oyjK1noOnLOeZJKELEsqDn8W6n22TrD4VIKmRj6u/g5zMVb3V+DdyC/Wt/4jJFq4I1GyCzksIOq0u+AhlTHn57CmtKQeoFfmbc+dj7TSHU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1767129013; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=R1scoqV8tAtwsz0ByFWcQqiBZXTYa+pUST9WI20B7OM=; b=G0EVsIBe0L2ge7yR+8ySkIVc59Gcy4fN3+HUC0G5PxH6+6U/4tqQL7/6RAOH1VtStL73iAkvKsOioOhgUILD1MCGWbNMOFy4gwQ7NlwcmFir6NnrdtC4Hi8k0bizsLuidB9LYwZ38Qkgkf/G9B6eFYFG4Azca2RfysIInPR4RiA= 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 1767129013539454.60054505050755; Tue, 30 Dec 2025 13:10:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vagyT-0008OP-IS; Tue, 30 Dec 2025 16:09:49 -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 1vagyS-00089l-0j for qemu-devel@nongnu.org; Tue, 30 Dec 2025 16:09:48 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vagyQ-0002Mr-BA for qemu-devel@nongnu.org; Tue, 30 Dec 2025 16:09:47 -0500 Received: by mail-wm1-x342.google.com with SMTP id 5b1f17b1804b1-47a95efd2ceso92959075e9.2 for ; Tue, 30 Dec 2025 13:09:45 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324ea82f6asm72014694f8f.27.2025.12.30.13.09.43 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 30 Dec 2025 13:09:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767128984; x=1767733784; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=R1scoqV8tAtwsz0ByFWcQqiBZXTYa+pUST9WI20B7OM=; b=u06YXZCvNrQ4lyPUyab9NWGsWNgDGFdljf8PybVvMdlEb3UO750rwUYa82YW0Eofxs IltcGw/Kbtu8oQD2FOEbKpo6JnPesaLmE27fOIsvKiVG6mPMXV8Fw1IDN09QRZQ4i8lj 4kv5CQqthUBDzX+ZkHgl7Wrhj4OWicR3tqcgJWn45KaCwFTwOhBQ7NrBVsePAoDxdeQS 005ukotvQwPLKdE7rGbOXXwsNotQLnHCtYwB+6R1zF62aGYLWcPqyUbJlLcBcI5DyrLJ QgkliJQozqKygsiFK6E4MJlEORh61D2LeEfJ2RiV3//+gt+2qcPNT8yDJLOX1VOZn/yC UVuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767128984; x=1767733784; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=R1scoqV8tAtwsz0ByFWcQqiBZXTYa+pUST9WI20B7OM=; b=UMig6vQQsLkohVYnR5lzMZIdNGqGj5Yg39RpT23eka9yX22Iqjiae9twFl37ZN3MJ/ NJ0l3yAHAO/HGnyr7ZIE94R6HBsZ3GAmmaFyJIgEfPboBNlYzmXHsxAWPXr8bg54WGCN FkLiAH7caoXgl0kaqz1eYDjyM+DeKwZivRihbOLCBWVOjtGwWUesXvDIVl6THAlx/sbq wyJKyNf9at7V5fXDE624lz6OAi57MWzhty0W3L44eZ8RcXviBQ3grqxnwumkngqzPm1E 4PrPER3iEM8kola+/W8T4HOJKwn9FSnImJswwj8vLUO+PzatM3ecDYrfZwK3qGorEPli RYnQ== X-Gm-Message-State: AOJu0YxxpvALzFmWFpMKOn1iRlrJs9pGaBOh2RRZWI3OLdPAT2DoLg25 l6C+kPQK+6q5NFIaNsrqFrCraG3FvU5deucFQQnJIdVFDv8kMZCy9vzQri6myZNM2HXRohBHu2D QajSTGqo= X-Gm-Gg: AY/fxX6tkywR4QuzneK2FM/mS9VRAE3fvgXjTvdHQbIqqBpr5PHcrIMJrx5vQeB0O/x 18olupdCAOFaR1s7PT7X9HzIAipVIo+E/DuD70nSpSTZF4Sae+XC359ZvGIjyNSFkujBbHm+sw5 cin0aBeCHH3SDkGG+3kqJ5vNONR3kY77V0Cr+GTy74c+Fp3gNPw6YkWHW+OYZMhzXZlFO0bo07q aCF0RwuXIwK9H8f72qn3+YGyrR9BIhStMpRi2I3IgZkj2fn51JDGTsUdnJZkSKAer6s2G/GbPfX eGpjyMhgCTgSstcQffAWIATZMwg7IXlj6ejxCo8oyyfJejBPqtmw543vjpKZA4dQajimgVRFych 5g3T7L05yCkN9MsXitlA7B2l4V4dzXjntu1nVwJeMeDMdgRyoB4jBMM3rFwhHuVPb8CIXhSBOIy eE/FLgL9mvEI6vbyFzpnF5UX63tWerGHRH/2v77A5EkiPsd9VlJW87fMGZjQhs X-Google-Smtp-Source: AGHT+IGydUl/lF67iiMs3RQTIaVUeXBTrPRlAC8WT0spYyVsHtccxuAEIr8wxnBaSEpkWfyISMrE3w== X-Received: by 2002:a05:600c:8208:b0:47b:d949:9ba9 with SMTP id 5b1f17b1804b1-47d19566f0dmr411510985e9.13.1767128983880; Tue, 30 Dec 2025 13:09:43 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 16/34] hw/timer/hpet: Mark implementation as being little-endian Date: Tue, 30 Dec 2025 22:07:38 +0100 Message-ID: <20251230210757.13803-17-philmd@linaro.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251230210757.13803-1-philmd@linaro.org> References: <20251230210757.13803-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 (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=2a00:1450:4864:20::342; envelope-from=philmd@linaro.org; helo=mail-wm1-x342.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=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 @linaro.org) X-ZM-MESSAGEID: 1767129015312158500 The HPET component is only built / used by X86 targets, which are only built in little endianness. Thus we only ever built as little endian, never testing the big-endian possibility of the DEVICE_NATIVE_ENDIAN definition. Simplify by only keeping the little endian variant. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Zhao Liu Message-Id: <20251224134644.85582-6-philmd@linaro.org> --- hw/timer/hpet.c | 2 +- rust/hw/timer/hpet/src/device.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 070b40e7f67..0d7b8e0c7a3 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -648,7 +648,7 @@ static const MemoryRegionOps hpet_ram_ops =3D { .min_access_size =3D 4, .max_access_size =3D 8, }, - .endianness =3D DEVICE_NATIVE_ENDIAN, + .endianness =3D DEVICE_LITTLE_ENDIAN, }; =20 static void hpet_reset(DeviceState *d) diff --git a/rust/hw/timer/hpet/src/device.rs b/rust/hw/timer/hpet/src/devi= ce.rs index 3166688e4e3..4757bf5fd55 100644 --- a/rust/hw/timer/hpet/src/device.rs +++ b/rust/hw/timer/hpet/src/device.rs @@ -763,7 +763,7 @@ unsafe fn init(mut this: ParentInit) { MemoryRegionOpsBuilder::::new() .read(&HPETState::read) .write(&HPETState::write) - .native_endian() + .little_endian() .valid_sizes(4, 8) .impl_sizes(4, 8) .build(); --=20 2.52.0