tcg: Improve the alignment check infrastructure
authorSergey Sorokin <afarallax@yandex.ru>
Thu, 23 Jun 2016 18:16:46 +0000 (21:16 +0300)
committerRichard Henderson <rth@twiddle.net>
Wed, 6 Jul 2016 03:50:13 +0000 (20:50 -0700)
commit1f00b27f17518a1bcb4cedca49eaec96a4d560bd
tree90abe3fc60c60ce9ff0aa5c46a87c5589ff55229
parent59d7c14eeff8d2ad7f61aed86ce5a176113bc153
tcg: Improve the alignment check infrastructure

Some architectures (e.g. ARMv8) need the address which is aligned
to a size more than the size of the memory access.
To support such check it's enough the current costless alignment
check implementation in QEMU, but we need to support
an alignment size specifying.

Signed-off-by: Sergey Sorokin <afarallax@yandex.ru>
Message-Id: <1466705806-679898-1-git-send-email-afarallax@yandex.ru>
Signed-off-by: Richard Henderson <rth@twiddle.net>
[rth: Assert in tcg_canonicalize_memop.  Leave get_alignment_bits
available for, though unused by, user-mode.  Retain logging difference
based on ALIGNED_ONLY.]
include/exec/cpu-all.h
softmmu_template.h
tcg/aarch64/tcg-target.inc.c
tcg/i386/tcg-target.inc.c
tcg/ppc/tcg-target.inc.c
tcg/s390/tcg-target.inc.c
tcg/tcg-op.c
tcg/tcg.c
tcg/tcg.h