From patchwork Mon Jan 27 11:54:19 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: 860258 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:18c8:b0:385:e875:8a9e with SMTP id w8csp1976844wrq; Mon, 27 Jan 2025 03:58:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXvJpZED1Ll1uW3Jc0L4Ge4nplxfjlCyFHXP3LgauNXEkW6IRd0X/g7Nh1sspnnGNUGBpjYdw==@linaro.org X-Google-Smtp-Source: AGHT+IGkPPcQCwtAlTI8wzVRcfVyQxeqvBN6MtIC0waPCrtJTZH9qHnhVYjd5DbU/qfWig6e/w8g X-Received: by 2002:a05:6214:1bc5:b0:6d4:21f6:a0d4 with SMTP id 6a1803df08f44-6e1b2234a5dmr629307666d6.37.1737979079937; Mon, 27 Jan 2025 03:57:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1737979079; cv=none; d=google.com; s=arc-20240605; b=AKrY656hpfSPsloCtEMelZRsWljgU0sLMp+Qj4CIYCXRNH+0BQF63258spHnUmFVCE oll/iD3eI/8FMMz6IdzYNXELkrprjdOC1F4q6WnaCuXTx0VjVVl9QiwuP8Quz9GvaPkw 7Hpb+iBNMtjgWRAuQ4gdlGJEfpCaroAWTEj5C5nn5Ha6ZZ4Rh5pnNSnbE2OpA6RYdZMs vqOUQJ7+9lCOK7ps+zhHTC+hXbxBfUOPrAxV/wX0rj5waBTvTgxdHMJGNWkLwd4OB0Yf FCA1pG7aKMkYNjexCGpsA5jdbl7zzXyWXrLl0SwbxZZkWNBUCiEmhj9tge0S8KOmUr7C Ftzg== 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=TmODB2YqiSgFfw6mNPswT7QwXij2cXKU42PdskrrlVY=; fh=UT36gCECAOtEsgOrSReymFda56t2Gj969DHeMwsi3As=; b=lt0DyDvIxPJPBVg7yqjM/BAwy1WVLTXCuFeHJlZqB8cIgLHMm9ACJyPbW8d4qBdIZr UTc3dsDRj+GY8I0f7qysbqdYDfOECQW+GRLeGyjev+zcyadlQTFHdarnUq1wJ9IWq0nu wUr396FTQA7+ARWHe96rfKjsRQKyGu3uep01tw0jNaEnLr3frqkQAgLg+QKIof7XObnh sXzwXy80UGNdUnUQTsKk4nyuQbjlWXyyNLok8XuPlwmssoerFg2F8SrOCcFirOoQLXfq zbA14UMzpktaRhTcE16GQjmHrdFrM8FIS/iwSC0cBAF4zdUsXIil1rrcaXB39xyk735F a9Hw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nJopVp7G; 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 6a1803df08f44-6e2061273ccsi96843126d6.443.2025.01.27.03.57.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jan 2025 03:57:59 -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=nJopVp7G; 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 1tcNhY-0006TF-O9; Mon, 27 Jan 2025 06:54:48 -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 1tcNhW-0006RI-Us for qemu-devel@nongnu.org; Mon, 27 Jan 2025 06:54:47 -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 1tcNhU-0006sJ-M4 for qemu-devel@nongnu.org; Mon, 27 Jan 2025 06:54:46 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4368a293339so49782855e9.3 for ; Mon, 27 Jan 2025 03:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737978883; x=1738583683; 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=TmODB2YqiSgFfw6mNPswT7QwXij2cXKU42PdskrrlVY=; b=nJopVp7Gc8ludZpwD4BxQ8sutpItSjeKSfdjYi4I2VHJwGoQ4u1Ct49QRT/n+gmGsP ffjHeURqxJ9tnKSbixhvGytXMbcXrZkqEnzQbvaypw+1r+D98yZDQFTVGBm/ziFh5jKE RiGyAG7Or77NCuTCIcRqwW3chaZUuBc0NhFj7fR0VETYNi7qUwuVUL+02UIykKyKc1Kc jq35ZAw1Ibq9Zpn3RlYKeVun/Xlw7OEQZlOM4546xCffwgDwfToA+f192+mpQYEx35Ek j7VLQuQGjYaamu6NuQodAnY51MuK/CqaP9D+628ja3glAeliPS2aW+IYUVir1QEbkufD jFlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737978883; x=1738583683; 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=TmODB2YqiSgFfw6mNPswT7QwXij2cXKU42PdskrrlVY=; b=Kw9Sp1Wef5DkhUssT3SIjwvpp3Py9evkDG8HVYFfGT3OQgbMrbg9VTMjtVWnEKlBe7 E0Qdtk/qdJv9WqT56UIof8LaoYlpW0pXffTVdo2HN4YbZHTt01x05nJrny5CElrRlTJW 1socC63kn9MpGPVulWIAywoWu7/UCsi6+oN+dXLEq14FHzP1WNzRBHwJ8BMtrOy4d6rL g3LMOmzbqdE1hjxaC9XvPFFK+BG+8mhpbiKM2Zb9Fe3qUmZGshnLMv0lXQAiQ0tpDzwk LtKsOzNUKvNRlxC0jAw4lQ3iMffO7assJ6oQ7FC+QeT7f/b2b95EmPNjZH7hge9p15AI SWgg== X-Gm-Message-State: AOJu0Yx6YyS0Ubp/QhCjQ4m6+RSYH7n2VUzDvGvA5bw+IdciTPPfvpgj zWMztryjIUoA3445uS/G9cSV6BFfKVDuhb2L5wQ6gKKCPP2GkBrRSns8D7+npsRlbWeFb8fwtHo OQZQ= X-Gm-Gg: ASbGncsRkxt4/J8eisMNTz+6DBy858fnKDSwVsbAgQz8GcEWfaFeFwXi/f42zVAq1mt f6LV1GQiYWz41kFjzsHdUqtPktpMvp7uN5OuGIzBbwFmuOwm23ZRHgTMz6Xrk9SJJDZyxXmVK+H bzX+xCGpvpCmfhLcaYWEXRFa543qTDLyJJQD1qY5jTg5pjl+3dlsH3oZhcaTaetWfGchxNaluN0 pRE5MfSqg3WBZliwZOBgrMGuhPfZwb0kdi0PwYTZfvXL4PqMVn5JQA+YKvViWcCwN8v+DtI+ROE HK3EQVq12Hev31XNIILpQMgXFq/hyoj6XnA7LLVFm37NOxh6ayHPIes= X-Received: by 2002:a05:6000:1849:b0:38a:8888:c0b6 with SMTP id ffacd0b85a97d-38bf57bfcf5mr42398725f8f.51.1737978882716; Mon, 27 Jan 2025 03:54:42 -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-38c2a17d6f8sm10684291f8f.28.2025.01.27.03.54.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Jan 2025 03:54:42 -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 03/10] target/arm: Set disassemble_info::endian value in disas_set_info() Date: Mon, 27 Jan 2025 12:54:19 +0100 Message-ID: <20250127115426.51355-4-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=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é --- target/arm/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index f9fdf708653..9de8c799c77 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1220,6 +1220,8 @@ static void arm_disas_set_info(CPUState *cpu, disassemble_info *info) #else info->endian = BFD_ENDIAN_BIG; #endif + } else { + info->endian = BFD_ENDIAN_LITTLE; } info->flags &= ~INSN_ARM_BE32; #ifndef CONFIG_USER_ONLY