Linux-Sparse Archive mirror
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] xtensa: switch to little endianness
Date: Wed, 16 Nov 2022 17:55:25 +0100 (CET)	[thread overview]
Message-ID: <44d1263-fe1-17b6-82d-fd2bbaa55cd@intel.com> (raw)

Current gcc options only support the little endian mode on Xtensa,
switch over to it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
---
  target-xtensa.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-xtensa.c b/target-xtensa.c
index 3620b4a3..48e4bf76 100644
--- a/target-xtensa.c
+++ b/target-xtensa.c
@@ -22,7 +22,7 @@ static void predefine_xtensa(const struct target *self)
  const struct target target_xtensa = {
  	.mach = MACH_XTENSA,
  	.bitness = ARCH_LP32,
-	.big_endian = true,
+	.big_endian = false,

  	.bits_in_longdouble = 64,

-- 
2.30.2


             reply	other threads:[~2022-11-16 16:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-16 16:55 Guennadi Liakhovetski [this message]
2023-12-18 13:57 ` [PATCH] xtensa: switch to little endianness Luc Van Oostenryck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44d1263-fe1-17b6-82d-fd2bbaa55cd@intel.com \
    --to=guennadi.liakhovetski@linux.intel.com \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).