[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] linux-user/syscall: xtensa: fix target_msqid_ds and ipc_perm
From: |
Max Filippov |
Subject: |
Re: [PATCH] linux-user/syscall: xtensa: fix target_msqid_ds and ipc_perm conversion |
Date: |
Fri, 29 Mar 2024 14:42:47 -0700 |
On Fri, Mar 29, 2024 at 5:48 AM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> Hi Max,
>
> On 29/3/24 07:31, Max Filippov wrote:
> > - target_ipc_perm::mode and target_ipc_perm::__seq fields are 32-bit wide
> > on xtensa and thus need to use tswap32
> > - target_msqid_ds::msg_*time field pairs are reversed on big-endian
> > xtensa
>
> Please split in 2 distinct patches.
Ok.
> > struct target_msqid_ds
> > {
> > struct target_ipc_perm msg_perm;
> > +#if defined(TARGET_XTENSA) && TARGET_BIG_ENDIAN
>
> Why restrict to only Xtensa here?
I have detected and tested it on xtensa.
I see other architectures (mips, parisc, ppc, sparc) that may need
that, but AFAICS it's not that it's applicable for all big endians.
> > + abi_ulong __unused1;
> > + abi_ulong msg_stime;
> > + abi_ulong __unused2;
> > + abi_ulong msg_rtime;
> > + abi_ulong __unused3;
> > + abi_ulong msg_ctime;
> > +#else
--
Thanks.
-- Max