From nobody Sat Apr 5 00:03:08 2025 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=1739225959; cv=none; d=zohomail.com; s=zohoarc; b=JFM6PMEXQmbbHLJHhnDtn82CdRrUL33l6vPXQC1i8swyiIUrNRcH3m15kJOb7RD9zjTG2mtUdThlclOZckKDchU8VAIPCdsVnGb/i2XQP+y3u/j803byk4Ug5kQ2Xp9HBs1R6qFmiMTza7zA9ZxASeOjaMd0hDm1XO2x0lAnlAI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1739225959; 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=na4NIhR7KjWn9JvA007jmUlM2ztPp6QYgo9rPBZi7l8=; b=WScIWVdFnqGNsIaLIeycP4a3z9or3Jp/wE8SenHygbHdKg8C059cp5W0RYGaytSuapeV/D6OSR0MehgCdU4p4Th36q7JqXIbX0tNVM2SNmMVC+jr4YFNW33zyqW/rB6tFV37wkeZtuPUHDSDWpLi96KcBQfa+CWLwnVqjZFBpD8= 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 173922595932560.25603788955766; Mon, 10 Feb 2025 14:19:19 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1thc7S-0002J3-IT; Mon, 10 Feb 2025 17:19:10 -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 1thc7Q-00028d-5P for qemu-devel@nongnu.org; Mon, 10 Feb 2025 17:19:08 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1thc7N-0002w5-Pz for qemu-devel@nongnu.org; Mon, 10 Feb 2025 17:19:07 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso33704545e9.3 for ; Mon, 10 Feb 2025 14:19:05 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4390daf4438sm197149585e9.25.2025.02.10.14.19.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Feb 2025 14:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739225944; x=1739830744; 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=na4NIhR7KjWn9JvA007jmUlM2ztPp6QYgo9rPBZi7l8=; b=AzS3onoxhCp7MlzD96P5kLZDVFz08q+Zu4WdLHoJQHZwgblTZv3W/ygJkrZoQ0P/Nb xkLUOc6UfzySYbsPXqa77+wCDoR9M3bHg/3aoyhboJ27W33mUhyS/4fr69LxKc8fV/37 7s7IRuUzAsvBhAn5Iud2tunZ6S/LRoTO+MVWQb+cy1jZFq3bKRGePKZIJyGOskzTIMox etLsg2nqmVIVD0c8ncVis92eughFdWPKLgkHqx+PyKfbaq3aUXbxjEbgwCVheM/mcIa3 NIwhqdSH9xQIvXIZK2B88OYs5m7c0+/bh9jChn/iyyCJYP4ut2wSJAZ45G5SJnXOx1g7 FleA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739225944; x=1739830744; 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=na4NIhR7KjWn9JvA007jmUlM2ztPp6QYgo9rPBZi7l8=; b=JXJf0JAc3NFacoOHVNFedJe4DuSSTyQrC/zIlZR5+Km1h4gBVjorb6PwTzhOwp7Gn5 kd+D0I5uzpJbiobDeWvFI2DxlGH5KTORLilm0djXjLY4HvoYSdrPJZMEuuifGBB4wCsX nmVEU8VvAdR2uhmdUfi6KnmcPoMGQblQPK2mX03apcerht3Nan2uCAtECous/jZHGbaD RElAjFnEB2psOhey/Ky8cS9GHOZUe5x7VAf1c3Vn6Qv7eseA6yZAAdBa2zwUC8PxBHFa o/eoMmHxesVNEBwmKhvSI5M16DkhWzlErb8+q7DBDO83wWbbRW+dS+DnvV9ozGThmtap pjDQ== X-Gm-Message-State: AOJu0YzxOrM7HGMtmKyZJcJvqun3IwBff4fAN+9g71L5LewdHWboos2P xswWrD7UEJ3diGu9PzYX9gl5AxyD+LcjUepTKwUOFTLU2jtrow7GWz3SjP/JDdMMMFw/fKUb2+0 uMgk= X-Gm-Gg: ASbGncsnTcHnhR6IqchF9Vy7wMnT0/NJO8fqd7Hws7bJWoTL2aBSnrHrvSXP8d7OfRN FzIUDn6M/fZa6xaJ7a8ZEzBjrFsEVVXxWWKrq+rFfu+oa1B0uncDFx47oalijIWOqZZ7tUzw7BA seX0sx+PAY5WmgdcmmrpxNJtyujE9YToRp6bVMAHDmYJy2iBH8QnLrnQj5iRTR9y2k2v1EqKPxL PoAbRo48RnTc2oDjKS1ERq8YhRbRAr5260F1zyCJIBtvAYuLQZUZVEkM32H+d+RR7paxrfEudeD dWQT04BDcUsxDpUP8WU2n6MmY7oFc6oNbENKzbw9F7/DEG547iczcxGMETK6mj9W4A== X-Google-Smtp-Source: AGHT+IF1X+ivutFhg212HzDYvb11p3QbwvnR9zgzwgnfQ8SmqYk+TasUSFJ7PknmU9DfcF3SB9N+eg== X-Received: by 2002:a05:600c:4fd4:b0:434:a29d:6c71 with SMTP id 5b1f17b1804b1-439249b2af8mr119969575e9.27.1739225943639; Mon, 10 Feb 2025 14:19:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, Thomas Huth , qemu-arm@nongnu.org, qemu-s390x@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 06/10] target/ppc: Set disassemble_info::endian value in disas_set_info() Date: Mon, 10 Feb 2025 23:18:26 +0100 Message-ID: <20250210221830.69129-7-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250210221830.69129-1-philmd@linaro.org> References: <20250210221830.69129-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 client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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=unavailable 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: 1739225961992019100 Have the CPUClass::disas_set_info() callback always set\ the disassemble_info::endian field. Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- target/ppc/cpu_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 25e835d65e7..e816d30114b 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7398,6 +7398,8 @@ static void ppc_disas_set_info(CPUState *cs, disassem= ble_info *info) =20 if ((env->hflags >> MSR_LE) & 1) { info->endian =3D BFD_ENDIAN_LITTLE; + } else { + info->endian =3D BFD_ENDIAN_BIG; } info->mach =3D env->bfd_mach; if (!env->bfd_mach) { --=20 2.47.1