summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-05-02 12:46:22 +0100
committerMans Rullgard <mans@mansr.com>2012-05-02 17:26:38 +0100
commitadebad07e084af91cad1b162d89c86c9e08e0a31 (patch)
tree3f68510c762abe19f692b02bc060fb5ee1556e2c /.gitignore
parent4b7fa553a90361da730dfffc92c4bb75a181897d (diff)
arm: intreadwrite: fix inline asm constraints for gcc 4.6 and later
With a dereferenced type-cast pointer as memory operand, gcc 4.6 and later will sometimes copy the data to a temporary location, the address of which is used as the operand value, if it thinks the target address might be misaligned. Using a pointer to a packed struct type instead does the right thing. The 16-bit case is special since the ldrh instruction addressing modes are limited compared to ldr. The "Uq" constraint produces a memory reference suitable for an ldrsb instruction, which supports the same addressing modes as ldrh. However, the restrictions appear to apply only when the operand addresses a single byte. The memory reference must thus be split into two operands each targeting one byte. Finally, the "Uq" constraint is only available in ARM mode. The Thumb-2 ldrh instruction supports most addressing modes so the normal "m" constraint can be used there. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions