From patchwork Mon Jan 27 11:54:24 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: 860253 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp1976409wrq; Mon, 27 Jan 2025 03:56:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXYd/VWjOZX04/xeMM3sCWDNXdSbJJjDGp4lbLevBAP3Y/5wUnC+wgtAYCyNS+wA5/eN6WFAQ==@linaro.org X-Google-Smtp-Source: AGHT+IE42pKlxF0z5kfsyJhTV1CXI02G1cYazqiPmJ6SlRDtlFiCVe9Mm+ntqpa5FWjctEk3yTzW X-Received: by 2002:a05:620a:410e:b0:7b1:880c:5805 with SMTP id af79cd13be357-7be6327c367mr6731836985a.45.1737978997090; Mon, 27 Jan 2025 03:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737978997; cv=none; d=google.com; s=arc-20240605; b=UHAfZ5ZbOfPsmzwhBSbfxz9sqNEJwUxyWiGHsvVPBDfELieTX/1q18i1+yhj5IQNDt SkZOJcBv1ufNh69dJPsYrIkk5NyymuFk1rNCaGdGksFSpuVLMmEwaIJiVjz1VigTW3in xJyrX0rvENwKCZYqpJ4rH+jV5L54IvDxtOH8OU0n5epuiXhrj35b8tLnzbQXYnQ2tnKO qRvYVeSW8DUNG+vD7s9YGmOnPeV2dUSNFghqK4Hitdz4qU1OJ0l4Dwr6KX4miP4GBeIL ZcFS1Irkb9D1bjmijOa4Yct1A6QlNIt0JBa3tV9lsj1jA5dMpQkIHQ7BD0NrwU4Mlzuv UPLQ== 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=JX3MnHembh04tcm3f0aOQ5qd9/M1w32l0pc1xIgIK0Y=; fh=UT36gCECAOtEsgOrSReymFda56t2Gj969DHeMwsi3As=; b=kCdLBEkG4LWCOcfXG1LjVt3ebLpY6iNiM2OCQUDEbst4JtcjIKdzukqC0IQZ9JPHgx kTursjg3TW8rq/4Dor3Q+Kbm174d7syxCjfnMW5bXRmHUf3LzVzJHc0yPf8hMjiApJxP v8OsDHn6Sez6JJS7TmwUpSBE8QWAs1SJcXWSYGuCDrCA8ZkEg9dyTHljDKfYOW5v5WnG xp/jUhnma3f86v8B6p4nco2i8aKJQfsuM1L117ZksQWHIbw2xuFaX+8KVlT4EX4vwtSh z5jxr8+nOWdH4GrtJDouAu1d/+f+VO0bb/pJB8/CHlrSX8AH448IGuYUndx1K9NFkwo/ rNRA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CRRuP110; 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 af79cd13be357-7be9ae81a9fsi804048985a.27.2025.01.27.03.56.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2025 03:56:37 -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=CRRuP110; 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 1tcNiN-0007YC-Hi; Mon, 27 Jan 2025 06:55:39 -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 1tcNhv-0006xG-Hc for qemu-devel@nongnu.org; Mon, 27 Jan 2025 06:55:21 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcNhs-0007Al-ET for qemu-devel@nongnu.org; Mon, 27 Jan 2025 06:55:10 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4361f796586so46942335e9.3 for ; Mon, 27 Jan 2025 03:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737978906; x=1738583706; 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=JX3MnHembh04tcm3f0aOQ5qd9/M1w32l0pc1xIgIK0Y=; b=CRRuP110n/bB1EYG+advtZI+agZNuvNdW4Lp7K3IM3FHsVcPvhwF0DSV2YypkZj3db ddbGpDUZky1gOIF8IBQ3PhKFhspIjm9hnDyOLakJnO/PeC2UrnXmsPwsz67+KtgJ79mi hy3yOZTkRlSXyWm5US5ASxlX5D+idxObKplBa2LJRHd4xiVrIpiAeAzSqb0Pc6Q4o5Yy oR2c/+Dz/2HjddgAJ55ClmYkB4Y+4CnhLsdDI03R2t4tsj9+wJL+Ke0BbM1wzOPRpF8z ZjrarzDZ4wfY2OESQiJ01OzK/epaZDgJ8AfwOBO739T+xdwZnRJ6fWRW84n2hNEYfHPT SrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737978906; x=1738583706; 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=JX3MnHembh04tcm3f0aOQ5qd9/M1w32l0pc1xIgIK0Y=; b=eGjM6Hk65t1lkr2Wp9xzSdEdkLZ8WHKupDz03ogJ25vdEsBRoW1MTCBzvnOA1E/SLG YoXTOFgVNawS+9nmNzDzYH41ljJjWqKZNygoQ9dU+c3q2qzjtTpva8Xy5oDMHcxEDdTl QyOHXdS/WW6+j5o/SMxoJ/8xBVaKYTcGWPjaofu4tKyEpS3XPX6S4wy9mVHedf7ai+3g zqpWWpKL10DpAy/0uuTEuYHLFXQyw8W85V7AhxT2j8i5P1cnhidlfmt1NMFaNXHjyeyy B1N1SooIR+shCrZXqT2HaPPftmr6GzNouEmqV+WdZQ273pVVviJl68Yx95O7FXUhPd1P OkEQ== X-Gm-Message-State: AOJu0YzsSbWcEzVqaPjb/T9lKeM59e9NuSOurrFO9Zw4r2zffNTQTq8V y5Q2Ye9hm4lVDIiraBTHaFLRSTbHLD8MsI6+i5Epo0NQbwhWErQMmMEEp5jL8X1hpsV6Ot3SM01 yqL8= X-Gm-Gg: ASbGncsbjXi65EyxJDLp0OobQdyOKb5oJpzkayrLPyOrMye1/+GckPeFWL0fp0aj+Yu oYxm2bfK+Uwl1/bDnrWANCe41Uwecf9O2KpOjCv/A6np156ZVT2hWjh+Ft/mu0PRE4RMU4BkVi0 BSHX2WeRkkMbTNSA6MVvpynSKC9knQX1ksT+0pCg0FM+S0DRQbf5pW9pbBUQuQVABJ3+QuNePej mBlHv8BnYRJIj0c4/OjESqVAgHolge+8iX6IlQ/Je5N+DphPJIW2Sz/qQsERJH1wsJ0HlaKfryF E5dNwmBvBz5PXnQPptJSpJXqEpq/SZ5cW/vIbQIiAlzUyO56RlC7h6E= X-Received: by 2002:a05:600c:6c95:b0:438:a1f5:3e41 with SMTP id 5b1f17b1804b1-438a1f53fa6mr346012555e9.12.1737978906511; Mon, 27 Jan 2025 03:55:06 -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-438bd54bfa5sm128347995e9.25.2025.01.27.03.55.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Jan 2025 03:55:06 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-s390x@nongnu.org, Paolo Bonzini , qemu-riscv@nongnu.org, Peter Maydell , Richard Henderson , Thomas Huth , qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 08/10] target/sh4: Set disassemble_info::endian value in disas_set_info() Date: Mon, 27 Jan 2025 12:54:24 +0100 Message-ID: <20250127115426.51355-9-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 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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=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 Have the CPUClass::disas_set_info() callback set the disassemble_info::endian field. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- target/sh4/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/sh4/cpu.c b/target/sh4/cpu.c index e3c2aea1a64..9d3e6cb2fd7 100644 --- a/target/sh4/cpu.c +++ b/target/sh4/cpu.c @@ -134,6 +134,11 @@ static void superh_cpu_reset_hold(Object *obj, ResetType type) static void superh_cpu_disas_set_info(CPUState *cpu, disassemble_info *info) { +#if TARGET_BIG_ENDIAN + info->endian = BFD_ENDIAN_BIG; +#else + info->endian = BFD_ENDIAN_LITTLE; +#endif info->mach = bfd_mach_sh4; info->print_insn = print_insn_sh; }