tcg: Remove TARGET_ALIGNED_ONLY
All uses have now been expunged. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
8244189419
commit
1fceff9c3c
@ -47,8 +47,6 @@ typedef enum MemOp {
|
|||||||
* MO_UNALN accesses are never checked for alignment.
|
* MO_UNALN accesses are never checked for alignment.
|
||||||
* MO_ALIGN accesses will result in a call to the CPU's
|
* MO_ALIGN accesses will result in a call to the CPU's
|
||||||
* do_unaligned_access hook if the guest address is not aligned.
|
* do_unaligned_access hook if the guest address is not aligned.
|
||||||
* The default depends on whether the target CPU defines
|
|
||||||
* TARGET_ALIGNED_ONLY.
|
|
||||||
*
|
*
|
||||||
* Some architectures (e.g. ARMv8) need the address which is aligned
|
* Some architectures (e.g. ARMv8) need the address which is aligned
|
||||||
* to a size more than the size of the memory access.
|
* to a size more than the size of the memory access.
|
||||||
@ -65,21 +63,14 @@ typedef enum MemOp {
|
|||||||
*/
|
*/
|
||||||
MO_ASHIFT = 5,
|
MO_ASHIFT = 5,
|
||||||
MO_AMASK = 0x7 << MO_ASHIFT,
|
MO_AMASK = 0x7 << MO_ASHIFT,
|
||||||
#ifdef NEED_CPU_H
|
|
||||||
#ifdef TARGET_ALIGNED_ONLY
|
|
||||||
MO_ALIGN = 0,
|
|
||||||
MO_UNALN = MO_AMASK,
|
|
||||||
#else
|
|
||||||
MO_ALIGN = MO_AMASK,
|
|
||||||
MO_UNALN = 0,
|
MO_UNALN = 0,
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
MO_ALIGN_2 = 1 << MO_ASHIFT,
|
MO_ALIGN_2 = 1 << MO_ASHIFT,
|
||||||
MO_ALIGN_4 = 2 << MO_ASHIFT,
|
MO_ALIGN_4 = 2 << MO_ASHIFT,
|
||||||
MO_ALIGN_8 = 3 << MO_ASHIFT,
|
MO_ALIGN_8 = 3 << MO_ASHIFT,
|
||||||
MO_ALIGN_16 = 4 << MO_ASHIFT,
|
MO_ALIGN_16 = 4 << MO_ASHIFT,
|
||||||
MO_ALIGN_32 = 5 << MO_ASHIFT,
|
MO_ALIGN_32 = 5 << MO_ASHIFT,
|
||||||
MO_ALIGN_64 = 6 << MO_ASHIFT,
|
MO_ALIGN_64 = 6 << MO_ASHIFT,
|
||||||
|
MO_ALIGN = MO_AMASK,
|
||||||
|
|
||||||
/* Combinations of the above, for ease of use. */
|
/* Combinations of the above, for ease of use. */
|
||||||
MO_UB = MO_8,
|
MO_UB = MO_8,
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
#pragma GCC poison TARGET_TRICORE
|
#pragma GCC poison TARGET_TRICORE
|
||||||
#pragma GCC poison TARGET_XTENSA
|
#pragma GCC poison TARGET_XTENSA
|
||||||
|
|
||||||
#pragma GCC poison TARGET_ALIGNED_ONLY
|
|
||||||
#pragma GCC poison TARGET_HAS_BFLT
|
#pragma GCC poison TARGET_HAS_BFLT
|
||||||
#pragma GCC poison TARGET_NAME
|
#pragma GCC poison TARGET_NAME
|
||||||
#pragma GCC poison TARGET_SUPPORTS_MTTCG
|
#pragma GCC poison TARGET_SUPPORTS_MTTCG
|
||||||
|
@ -2185,13 +2185,8 @@ static const char * const ldst_name[] =
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const char * const alignment_name[(MO_AMASK >> MO_ASHIFT) + 1] = {
|
static const char * const alignment_name[(MO_AMASK >> MO_ASHIFT) + 1] = {
|
||||||
#ifdef TARGET_ALIGNED_ONLY
|
|
||||||
[MO_UNALN >> MO_ASHIFT] = "un+",
|
[MO_UNALN >> MO_ASHIFT] = "un+",
|
||||||
[MO_ALIGN >> MO_ASHIFT] = "",
|
|
||||||
#else
|
|
||||||
[MO_UNALN >> MO_ASHIFT] = "",
|
|
||||||
[MO_ALIGN >> MO_ASHIFT] = "al+",
|
[MO_ALIGN >> MO_ASHIFT] = "al+",
|
||||||
#endif
|
|
||||||
[MO_ALIGN_2 >> MO_ASHIFT] = "al2+",
|
[MO_ALIGN_2 >> MO_ASHIFT] = "al2+",
|
||||||
[MO_ALIGN_4 >> MO_ASHIFT] = "al4+",
|
[MO_ALIGN_4 >> MO_ASHIFT] = "al4+",
|
||||||
[MO_ALIGN_8 >> MO_ASHIFT] = "al8+",
|
[MO_ALIGN_8 >> MO_ASHIFT] = "al8+",
|
||||||
|
Loading…
Reference in New Issue
Block a user