From patchwork Wed Feb 12 11:39:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 864447 Delivered-To: patch@linaro.org Received: by 2002:a5d:4cc5:0:b0:38f:210b:807b with SMTP id c5csp72378wrt; Wed, 12 Feb 2025 03:41:20 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUjGKNlbmZ/Pd/hI+KUVPrILZ0xUvODdHRypUgMUK/ya5nv/7k6Jmdr7givAKZuELKMzXU4LA==@linaro.org X-Google-Smtp-Source: AGHT+IEdo33Twegbu8Q/LtBCap9JEgeO9XtJhwdlbU6DFMy3yzBrrbBmepD3XEIRCjuyMapj/dsx X-Received: by 2002:adf:f792:0:b0:38d:bd41:2f8b with SMTP id ffacd0b85a97d-38dea5f8034mr2107692f8f.44.1739360480387; Wed, 12 Feb 2025 03:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739360480; cv=none; d=google.com; s=arc-20240605; b=EHH/ul2Oqe0DNd36aW8ZQK7dIi1o/FiX5bz9hEw5EBV4Mu06AdbewLJBPjBXqCaKC6 CmS84EUHRxC6fCPMkzuWWMK7AAXNdqP0TPA0h5EvtW6yp8+Y//UU7LYE14LRLKp4sIFy lVZiphVUguS4GuDPIhDAcRuFplX1WnFZcoTa/ek7ASPlLfJLvAPA+494EymejB52meul v+UsR9pY2erY8HkFhCuWqVZrHunFIYTpXp90SVJmYwnn5OV6EutWtHyHrxK6h7LaifE7 BpBft0ac4/mMi+7qFRxYI3VOFscpREIvSz61GAe00iKbXZUUVpAgSIAcVfdwUS6U9GDS MMvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=mrLx9pNp+bcF8pLwNwFLoW2tChA85mu49fL7NOiZcbE=; fh=vD7qhQ7cZX19KLZAcmtT05o0qXFeHyljVeBJb5qxcok=; b=B2evOJGzc7/UDL78ES+TOJXWFSNA5ZbKTRP59OkeSpdJP6n1ffb/ffj92vkp7CXT4I 3OT6f8paulOBA1Xnt0cBBy9o4Koi7b123h0y7DrGy1n9n2wzT6YVAW9oInr4IZyiKc2R 4qynB1+ICM5DDOFbzx6kciKbNqmCuBp9bITz9MNkq6jjXdU5eR2Cd7vKDEfachNrYA2J 56+goTW/oPscikwIf2L5lprCjL112V8tGPwYXI7R37laQbpEoPz9wV4ZcTxO2XkvTsxE 4xBcfhhb/s8ABJCgrH33+OwJq11PugKdDtMUZ+6UwbbBbD9FsoCCWdoTsC+dNagG7Q43 2bWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ztBtrTrA; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ffacd0b85a97d-38f214c5f7bsi237677f8f.443.2025.02.12.03.41.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2025 03:41:20 -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=ztBtrTrA; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tiB6C-0002P8-8k; Wed, 12 Feb 2025 06:40:12 -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 1tiB6A-0002OK-Ht for qemu-devel@nongnu.org; Wed, 12 Feb 2025 06:40:10 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tiB68-0000tF-8B for qemu-devel@nongnu.org; Wed, 12 Feb 2025 06:40:10 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43955067383so11603365e9.0 for ; Wed, 12 Feb 2025 03:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739360405; x=1739965205; darn=nongnu.org; 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=mrLx9pNp+bcF8pLwNwFLoW2tChA85mu49fL7NOiZcbE=; b=ztBtrTrAWdqQeqFFfExL47NvaOhvJ7JzKIs5VJJGEGvhT11fMGMigzYR67qqPQ5ZHw bIo5l5nsK5wRoLXfxaR/gVNgOfUbcyOSHo+kJ0jkdAbCVKm8tuFphqTom70YhB7Ya1ZX aCkyz5VCtIe7C3Cwgu4gZovfIAtMI1tGAUcx9RnX2DjaHkF1Zxju+AwFLuigFHwJw9H+ zJmmsizmszYHMPhYyEhVeuBLNR/JKyfjZAhCjTNpGzH+MwimheeIsV2RovD8lWJMtXqr zbtk4FV2GH+RKu2CtY29hVVWlRuIlQLUkJhe25dHq3hgJX5n/OPBGeS+PT05fk0+w1Tr MZHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739360405; x=1739965205; 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=mrLx9pNp+bcF8pLwNwFLoW2tChA85mu49fL7NOiZcbE=; b=nJL3d3FT0rAi30lAMhJA6rEAuooEnADfCwBKeWBxvbG+Vl5tU5ux1DkvtzEFIChV6r 8rs9LwWL4y73DZmKBI+hLbKac8djmeRHy2JUkjJWTaKJPhSNc5+DUQbJQOw92eccWZMA sfRYgCdYYzDIZPQoYIKa/O833aPKrRFgruZb+M0v7AsJCept8ImTye12zqLF3SkYblzs AuBMb9LlR7UdS/lQyzaTBgymhAYOZ32BqWISb7I6E6btj4+vSTIG5LRJXwGHkfzJlzJV /UFMdPAWBurg/AhffOjRfWWC4jpgip4YsWrhiehPDiBWAvkWPjL5Gqr3pHcMxrrDEJmC 0xJA== X-Gm-Message-State: AOJu0Yy6mwHq9JZadsnkSZZAtKHzNTTUNfkTjJSB2FZkLm0apaEosqhM 2uGc3M1uMcmE5FfcVsARENQqtotHNncZcdyTaKBPefpPo/P3/E9RIusFx49TJpVvbl9ZgOqjrcn PhvE= X-Gm-Gg: ASbGncs/E2+ZcLp6NamvybhiqLIs6qAdbiK8L3+wPSSLTCRFAGb4mEDRB3tHAg8fq1s wjA93AaE2X4YKk2V0Grk+5aEgiykG7IVIW1V+n4FV9vd2T6MOFUbmlt2vj1fAgpZVed6CFJXlXE O4prYi92G8LfRFwz8OWxshW8HnokZOUZXDfoONAeAHivOdawR0fAWZg/IKe4xh+IFFYEWWKBdwf KLmohkWDXrRTaSezi8yJpB5r7EeOKGtCrzrL4ltb/bnvkgdZlv1mkrCY+Ut+td3YMGNbHHRPOnV 8q3xkjey3WjZWHZ4vmZOUlBBT01UZgkxiF9lTWjh84W/ERwGFOapqtwVYzZDb1x5kA== X-Received: by 2002:a05:600c:1548:b0:436:1b08:4c78 with SMTP id 5b1f17b1804b1-43959a997a5mr21481265e9.31.1739360404731; Wed, 12 Feb 2025 03:40:04 -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-38dc3a10fffsm16386020f8f.12.2025.02.12.03.40.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 12 Feb 2025 03:40:04 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paul Burton , Jiaxun Yang , Huacai Chen , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Sunil Muthuswamy , Peter Maydell , Beniamino Galvani , Strahinja Jankovic , Alistair Francis , Jason Wang , Niek Linnenbank Subject: [PATCH 5/5] target/i386: Mark WHPX APIC region as little-endian Date: Wed, 12 Feb 2025 12:39:38 +0100 Message-ID: <20250212113938.38692-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250212113938.38692-1-philmd@linaro.org> References: <20250212113938.38692-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This device is only used by the x86 targets, which are only built as little-endian. Therefore the DEVICE_NATIVE_ENDIAN definition expand to DEVICE_LITTLE_ENDIAN (besides, the DEVICE_BIG_ENDIAN case isn't tested). Simplify directly using DEVICE_LITTLE_ENDIAN. Signed-off-by: Philippe Mathieu-Daudé --- target/i386/whpx/whpx-apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/whpx/whpx-apic.c b/target/i386/whpx/whpx-apic.c index 4245ab68a27..630a9616d71 100644 --- a/target/i386/whpx/whpx-apic.c +++ b/target/i386/whpx/whpx-apic.c @@ -231,7 +231,7 @@ static void whpx_apic_mem_write(void *opaque, hwaddr addr, static const MemoryRegionOps whpx_apic_io_ops = { .read = whpx_apic_mem_read, .write = whpx_apic_mem_write, - .endianness = DEVICE_NATIVE_ENDIAN, + .endianness = DEVICE_LITTLE_ENDIAN, }; static void whpx_apic_reset(APICCommonState *s)