From patchwork Mon Feb 10 21:29:25 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: 863857 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e42:0:b0:385:e875:8a9e with SMTP id r2csp1807599wrt; Mon, 10 Feb 2025 13:31:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVbNmvXexXHmp3QrANGnU5/BzIFSIBfRE2JmRe/gGw3kQpObgfo+jkv95nMAaUGqSVs1zAYcg==@linaro.org X-Google-Smtp-Source: AGHT+IHHh0vZ/eGudPTw2hD2yFC0CuEfHryayXrqLKbewRHpakCFbJZ1MWVtJSZdlOw5z/t8JTxa X-Received: by 2002:a05:622a:1cca:b0:471:90d1:2344 with SMTP id d75a77b69052e-47190d12646mr94739131cf.4.1739223070768; Mon, 10 Feb 2025 13:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739223070; cv=none; d=google.com; s=arc-20240605; b=aVq0QZU0bo09es3kpB0+kzPzjxXMmlHilMzJaf821COjTtyCYN0GxobxvwBiP0/u3i LkUDhF9XLjw1fTci8hS0qNCKUvHo7/9tK1VL2Kw6r/5WjW2HUIZGrHCPGjraswPEqsQx GKVg2tvd2KijVz/zPEnqeLWmdZnf657ExY5z9HyqC3f1AL+/YVU/R6JyXi9HGpE6IFcO TAsLUJ4Il1Cw33DmDN8bpcHRaL1oa+WnTWBuAubwYhKVHLPiQPiS/L3eKKoNf7BDeGC/ 3YzUB3pSAjzqG8X5HjCo745PzD8qQlkmW1jJ7ORPLfpWSqP3sYoGTxzIGlsk45eyJX/A 3yWA== 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=+JtBiYKMI/Sj3oIOkec3F7FVIT/FlOHh9WNs4yErZgw=; fh=mM1ERsVQwgcKb3yo7TgbYZeCYb5iRr8ycQ/rB4WqrWI=; b=BK+8Pd+VDT9LkzVkgvDAe+jWLYxJqi3BF9KrtNpSwQtK65aUjK+2KJ5gECY9rVyDmt A8iaQu0kqJnL1aMeMwSNMVOCHP3TDP3RnaQaUbdw422rXj50+TIBw7mBOAJCeqlHQpcx 58kaAL6n5daRG29nllvoTqH9/B7CdEr5WZ1FjcSw0tEznS4qCaPjeafsoAfhQWDRzNCL mPTKlBwc4KucoPoxUGrojclxHU4FzU5oTnHenHjFc96kBi9qdv3yaLfvOs7b/0Fa0ska sAwuOAT+2XcHzloeIFCsmIq+FAOvajHu4dtF3MQ61wsCHlw5lx/1Xifrkf9S+/ApwzgC QjAQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ddd0eL4v; 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 d75a77b69052e-471492957basi100158211cf.175.2025.02.10.13.31.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Feb 2025 13:31:10 -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=Ddd0eL4v; 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 1thbLw-00042O-Vc; Mon, 10 Feb 2025 16:30:05 -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 1thbLv-00040g-MX for qemu-devel@nongnu.org; Mon, 10 Feb 2025 16:30:03 -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 1thbLs-0002DU-Hx for qemu-devel@nongnu.org; Mon, 10 Feb 2025 16:30:02 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43934d41730so22239505e9.2 for ; Mon, 10 Feb 2025 13:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739222998; x=1739827798; 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=+JtBiYKMI/Sj3oIOkec3F7FVIT/FlOHh9WNs4yErZgw=; b=Ddd0eL4vR2q1s62vhOZtVtmwLGOyQ7MO7Ajn56hWS+XC+3CjlsK9JEZeCPpuxO0h2c H08NMxioC1ovSmVlbMw2Ad7Hyy8anAEDzgXGD4jxS4Wrz4pJ9xZgCNeLtzNAMJniemXu UGN2SnVPGAA2zakOmGFIZ4FwQMx8p4PeXOk/06MXQ0akIRM2ayxkZ02CJzKmfA8AaWgY 0q1UxL53hoesNbEA6um3YSypyBIiVph/RmpemNmWOxrVVQAq2Okcd0a4AhS13lj1n27q DZ1a532DskpAkcZw4ParpHdsp8w7viaCCxzj9fabjpGAy5LhcWv3FbzsZRQEI61eW++b k7mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739222998; x=1739827798; 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=+JtBiYKMI/Sj3oIOkec3F7FVIT/FlOHh9WNs4yErZgw=; b=rJtfZ1q6784nLJu5DWnwGlae0OQXEKUnnGm1GVATMysK/6lU00AgMPtdhX166JzzZL lwsqwRRnVPuDQK4qNRe2Vm1ObezxmFD44/ZGfwwXwamyQZy7WP45KNZcJJn94AOr0n9i TKll1I61HGBvRcy38odzpDe0eNgicIDE+HzAssNnGxyl60XyzTOMQTtQ8WIi5rTlaOkB sKTsGHLNZCWKlCdrtoJdwUe9N5jMx2o+RsMg8VJJKkkAOeF9R93/8vOWXnQX0HoibHCO aSRMFfa8hdK2d7KIPeTCMITMspzCxbsGP/MOaxz1nMVq8IaZMvT6Xr7RjAxustyIscf0 brEw== X-Gm-Message-State: AOJu0YzpSJyI59uNWTGZ7s/gChqiADjzAonxofDdNsmnchfcpyLglN2q A6zDpBzwF0ZpuJyIHbm+SapTUhTYHJPzCtRbnkPcxBZzbtetNBt8gBopk38IIYKMRynSZrOfq8V IndA= X-Gm-Gg: ASbGncuavaZKvtXRY7wEhDZKFwAkpiNnH3ZMrt0y9JubXvy6MobGXYUJx8Tgt2f7yej SUfkpQwzOUpN5PdlQ2Z7YgFGV5H/P3otxxqev7D6MLv02R8HdoBWPItalDK0o49cQ1B7Xjs1KHy T+dB8y4OddZRYvo73wHlfrzL8ySgo7psGA9OlK8zfWT3SvI7BH/Ny8kDboH1gmOjmdZHuEKSeFu Cn9PNVU6CI98wR6IUF7vt1irr9gLtmNZGKAZPkiiAZL5fWenYMfMUkkNpZJJl2jj5Aa8ZeRx3gb 1cx9LLWX5jn9QQEwcrLUAinFl6eE5R+JGOVM2Urq2shCiQ5BHUenNPdz0uSU+a3+OQ== X-Received: by 2002:a05:600c:1e02:b0:434:fa73:a907 with SMTP id 5b1f17b1804b1-43924992054mr128935005e9.13.1739222998589; Mon, 10 Feb 2025 13:29:58 -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-38dccc1f531sm9947450f8f.87.2025.02.10.13.29.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 10 Feb 2025 13:29:58 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-arm@nongnu.org, Thomas Huth , qemu-s390x@nongnu.org, Richard Henderson , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 05/10] target/mips: Set disassemble_info::endian value in disas_set_info() Date: Mon, 10 Feb 2025 22:29:25 +0100 Message-ID: <20250210212931.62401-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250210212931.62401-1-philmd@linaro.org> References: <20250210212931.62401-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=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- target/mips/cpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 0b267d2e507..f6d247b530f 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -429,12 +429,15 @@ static void mips_cpu_disas_set_info(CPUState *s, disassemble_info *info) { if (!(cpu_env(s)->insn_flags & ISA_NANOMIPS32)) { #if TARGET_BIG_ENDIAN + info->endian = BFD_ENDIAN_BIG; info->print_insn = print_insn_big_mips; #else + info->endian = BFD_ENDIAN_LITTLE; info->print_insn = print_insn_little_mips; #endif } else { info->print_insn = print_insn_nanomips; + info->endian = BFD_ENDIAN_LITTLE; } }