[U-Boot] [RFC] [PATCH] rewrite doc/README.arm-unaligned-accesses

Albert ARIBAUD
2014-02-22T15:00:19Z

On Sat, 22 Feb 2014 13:17:50 +0100, Albert ARIBAUD
<albert.u.boot@aribaud.net> wrote:

> Code which traps with -munaligned-access and SRC.A set is code which
> is not correct, since the native unaligned access which was trapped
> reflects an unaligned access within the C source code, which is not
> allowed as per C99. If that access had been performed through get_ or
> put_unaligned, then the code would be conformant and wouldn't trap.

To be more exact: ... then all accesses in the code would be conformant
and wouldn't trap (the code as a whole would quite probably still not be
conformant because of the way the unaligned access would be rewritten
into aligned accesses by the get/put_unaligned macro).

Amicalement,
--
Albert.