Re: [PATCH] Add prctl to change endian of a task

From: David S. Miller
Date: Mon Apr 03 2006 - 18:41:18 EST


From: Anton Blanchard <anton@xxxxxxxxx>
Date: Tue, 4 Apr 2006 08:36:20 +1000

> The aim is not to implement little endian binaries but to assist
> running portions of code in little endian mode. The thought is we could
> hook up qemu to it and avoid having to byteswap.
>
> While ppc has byteswap integer loads it does not have byteswap floating
> point loads and a byteswap involves loading into the integer unit,
> performing the byteswap, storing to a temporary location and loading
> into the floating point unit. Rather slow.

Doesn't PPC have a PTE bit that does endian swapping? Wouldn't
that be easier to use for something like qemu?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/