public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] [PATCH] rewrite doc/README.arm-unaligned-accesses
Date: Sat, 22 Feb 2014 16:00:19 +0100	[thread overview]
Message-ID: <20140222160019.4cc483c0@lilith> (raw)
In-Reply-To: <20140222131750.5cb50999@lilith>

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.

  reply	other threads:[~2014-02-22 15:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18 12:52 [U-Boot] [RFC] [PATCH] rewrite doc/README.arm-unaligned-accesses Albert ARIBAUD
2014-02-20 21:34 ` Tom Rini
2014-02-21 10:25   ` Albert ARIBAUD
2014-02-21 13:38     ` Tom Rini
2014-02-22 12:17       ` Albert ARIBAUD
2014-02-22 15:00         ` Albert ARIBAUD [this message]
2014-02-24 14:37         ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140222160019.4cc483c0@lilith \
    --to=albert.u.boot@aribaud.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox