qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] linux-user: Add naive implementation of capget(


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH] linux-user: Add naive implementation of capget() syscall
Date: Sun, 23 Sep 2012 16:02:34 +0000

On Sat, Sep 22, 2012 at 11:23 PM, Erik de Castro Lopo
<address@hidden> wrote:
> Blue Swirl wrote:
>
>> This is not correct. The structure needs to be converted field by
>> field to host native format, especially endianness.
>
> I'm working in a similar syscall implementation (POSIX timers) and
> I'm currently testing it in an debian armhf chroot running on my
> x86-64 laptop. After quite a bit of debugging its now working perfectly.

So the structure happens to be the same for this pair by chance,
probably because neither architecture care much about alignment. The
correct fix is still to do the structure conversion.

>
> However, both armhf and x86-64 are little endian, so I'd like to
> make sure it works on a big endian CPU emulation as well. Unfortunately,
> I can't find one that works (I tried ppc, sparc and mips). They all
> seem to have different problems and I can't seem to run anything with
> the linux-user emulation.
>
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]