Message ID | 20250127115426.51355-6-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp1976290wrq; Mon, 27 Jan 2025 03:56:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUxfTblLUQA+B10Jab0Ojh6ZLt/Kh3X4arj1y5BaLhLxJD+crnGqgixwEEzOn4lMn66Jtc4Cw==@linaro.org X-Google-Smtp-Source: AGHT+IGXwaIF6017/psTrgofEVNSlL2GHoK2lS+gRQeV0uIG1xMbsfOPew7nbXxy9sflwMs+uUjn X-Received: by 2002:a05:620a:258e:b0:7b6:66d0:5ac2 with SMTP id af79cd13be357-7be63276aacmr7370362785a.54.1737978973693; Mon, 27 Jan 2025 03:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737978973; cv=none; d=google.com; s=arc-20240605; b=A9mGgS/mCc1yw06Hdu6aoajbPDaDnOepMQG1nvAsL85KPuQ+XMj6Na+tO04cLeVbrB 035M2hsfqYrOOQy1cudxO22M78ePqEyD7Xx5ssoLkcO6tqNv6JJ/ORjTv51IWQJADOQT GNAkY1aheaeRzW+dwrhZcLtKiXCkQC0gro6wto/GgLkYb6fdHnlEfjtma0KPDe35Mssj RqPAjQ2p4KIY9or/ZMSxYNLPNYsDelNrcj5/rajeu8kNPSFSKbgHeTvNu9bOxVE2Q9I1 2jfYYDSJN7Ds0qNDtRoE0Vr1zNNOrNT6HuwK6YeLdH/XxVlfjUEo1w3Hto7B9lwXxXhn tBsA== 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=HOKaO4+JhkS19YUfs3qPtnMOdIHyEK0YrYWedLcqil4=; fh=UT36gCECAOtEsgOrSReymFda56t2Gj969DHeMwsi3As=; b=D7eZxf9rGo1UnKk7+Vmpdhkt1XPy/CAjoWLehjAw96Ez37nXe8tJgI19sfQndnmol4 cZmq1kVAxLkt2KDuKUELCoR+yHZnsu7Ib6NZG7rhotavqY6F+39JrRP7j9H9zFBZ8rC/ cAKlvRR8tve/E1Sy5ROiGYoFiHezkERoHBqLWPLIDQe9tnucbcdBLnOqtXKVaiFgVyuV Vja/LpntL7npKggw7RCRT8Mk0nyXed2dDJBqn+l2T/3n912hILv06IidtYFARv18n9ku F8tFj5sy5WXvfzIt6qCPPACXg8r6AU8PGTrdUU8BzDklBEaB8tPi/X5DKaXfYfZPcDWC 1MtQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MwuihrdV; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7be9d4716e3si985282185a.534.2025.01.27.03.56.13 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2025 03:56:13 -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=MwuihrdV; 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 <qemu-devel-bounces@nongnu.org>) id 1tcNhh-0006bI-SA; Mon, 27 Jan 2025 06:54:57 -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 <philmd@linaro.org>) id 1tcNhg-0006YC-5Z for qemu-devel@nongnu.org; Mon, 27 Jan 2025 06:54:56 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tcNhe-0006wc-0k for qemu-devel@nongnu.org; Mon, 27 Jan 2025 06:54:55 -0500 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-38a8b35e168so2801777f8f.1 for <qemu-devel@nongnu.org>; Mon, 27 Jan 2025 03:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737978892; x=1738583692; 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=HOKaO4+JhkS19YUfs3qPtnMOdIHyEK0YrYWedLcqil4=; b=MwuihrdVUTVYfD2aL+chwflx0z4w5Fls6E9YR90Jl5N+mbIwFobMWfy50R2dG1PnbW 4vuflc1QlLY1vZm6yhms3cYX0ElkUJ6RhsRZcW5bWavBPG7Uu/N+/W8UjJYz18I5+z3/ 82cL7ZViRV8fvxA2fnvdZD9UnJrZlQCKnzdIT69fUbpPSjIapTQ39UN6agp8V72bzRYp +wrg4NcuioTJeto8tiNh39y+fyeHL5awuoncrKiQ0NlT+/ggzK73/VVbLGZ+k3wAEiNz 8Q8kBOd+z5mkQn/iSwg5M+xod5h9zj7WGsnb6VFCjB9xJj6ao1HuYuru529oLlVbTuBp rp4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737978892; x=1738583692; 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=HOKaO4+JhkS19YUfs3qPtnMOdIHyEK0YrYWedLcqil4=; b=qv1gae8jWXLJRH3ggCIjK5nl6gaF44+OVG/qu40hMxMktRfyjaG5nVer1aNaBXSXXb x5OmyUQCwvoHGhBCLuceGk3ejeX+umAlx6Ym+8xyk3yScKSLwnJvnvYuhDvRpFmLVh0Y xGKkSoc4kZ+6gDj+foLXH1TuxkB2Y6OCReUAs3NA6ZK2UYY+xfSz/Hoxkhiz/1+8n20b X/858jBVU60v8678N0JrjlTSjlyQMBHDctxC+B2vekt2b6vzGqvohxfAAWaRP36YS/lr DGVO5imKOuyuG8fuK//htSxvr9jTiyPiE/hmsxKmdQYSvC+MnAsdjIUiIsV52JyJ0JVP 1fyA== X-Gm-Message-State: AOJu0YztO/P1P/blhxbuieKYG5nFiKIbmFeTj8XB5rv0bl3BMzbcOcTQ RyF0KdimumzauMvJ7hH69KP/BTjlNiPeE13nlOfRcqnSB4RD2msrvTV+qBMHt/lESatiM9rIet4 IaFM= X-Gm-Gg: ASbGnct5tsAPROiPjiC4n6Zu3ccbHd2r1HnLG81n6RRqrMggOG7nFsdev6Jud2B2hkx nNmSk+tBNQizavE0M53epWH86gSG6aH2OW0IBSmd/mSZEjaL4yCjgfkqr4+rMC67UqJJMXAWXq1 I2faqrqd8aTMRxWi6CoPaRi5Vdpg1JGicCAVcoa3Yzv7o4E26SsC4D+Ky5q+UU7o1ZNrDoO9pRE PQiaiNClRJbi34y6NsxuJBakuky8SNOBG3YLaGhNhUeyrqok55R5cLXnd2GNWewObmC9FgJExf9 GZlJzN9RvCUzRawUPBBXx0z8vlmN6uE7Hvzx5H3Kq7iWpYc/1LSXEPM= X-Received: by 2002:a05:6000:1787:b0:385:f892:c8be with SMTP id ffacd0b85a97d-38c2b7cdabfmr11603137f8f.23.1737978892299; Mon, 27 Jan 2025 03:54:52 -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-38c2a17d865sm11029825f8f.38.2025.01.27.03.54.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Jan 2025 03:54:51 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>, qemu-riscv@nongnu.org, Peter Maydell <peter.maydell@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, Thomas Huth <thuth@redhat.com>, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PATCH 05/10] target/mips: Set disassemble_info::endian value in disas_set_info() Date: Mon, 27 Jan 2025 12:54:21 +0100 Message-ID: <20250127115426.51355-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250127115426.51355-1-philmd@linaro.org> References: <20250127115426.51355-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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, T_SCC_BODY_TEXT_LINE=-0.01 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
disas: Have CPUClass::disas_set_info() callback set the endianness
|
expand
|
On 27/01/2025 12.54, Philippe Mathieu-Daudé wrote: > Have the CPUClass::disas_set_info() callback set the > disassemble_info::endian field. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > target/mips/cpu.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Thomas Huth <thuth@redhat.com>
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; } }
Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/mips/cpu.c | 3 +++ 1 file changed, 3 insertions(+)