aboutsummaryrefslogtreecommitdiff
path: root/cputlb.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-07-08 19:02:33 -0700
committerRichard Henderson <rth@twiddle.net>2016-10-26 08:29:00 -0700
commitc86c6e4c80fee4d9423bedb10ba9e9c4aa68f861 (patch)
tree0a1267362f9b784295c07ad374720a7bc92ddb46 /cputlb.c
parent82a45b96a203a7403427183f1afd3d295222ff7d (diff)
cputlb: Tidy some macros
TGT_LE and TGT_BE are not size dependent and do not need to be redefined. The others are no longer used at all. Reviewed-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'cputlb.c')
-rw-r--r--cputlb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cputlb.c b/cputlb.c
index 1bee47d5cd..82cf46ea64 100644
--- a/cputlb.c
+++ b/cputlb.c
@@ -585,6 +585,14 @@ void probe_write(CPUArchState *env, target_ulong addr, int mmu_idx,
}
}
+#ifdef TARGET_WORDS_BIGENDIAN
+# define TGT_BE(X) (X)
+# define TGT_LE(X) BSWAP(X)
+#else
+# define TGT_BE(X) BSWAP(X)
+# define TGT_LE(X) (X)
+#endif
+
#define MMUSUFFIX _mmu
#define DATA_SIZE 1