[U-Boot] [RFC] [PATCH] rewrite doc/README.arm-unaligned-accesses
Albert ARIBAUD
albert.u.boot at aribaud.net
Sat Feb 22 16:00:19 CET 2014
On Sat, 22 Feb 2014 13:17:50 +0100, Albert ARIBAUD
<albert.u.boot at 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.
More information about the U-Boot
mailing list