|
From: <sv...@va...> - 2014-09-05 14:49:25
|
Author: florian
Date: Fri Sep 5 14:49:17 2014
New Revision: 14465
Log:
Move the endianess test for ppc64 to the correct place.
Modified:
trunk/memcheck/mc_machine.c
Modified: trunk/memcheck/mc_machine.c
==============================================================================
--- trunk/memcheck/mc_machine.c (original)
+++ trunk/memcheck/mc_machine.c Fri Sep 5 14:49:17 2014
@@ -161,6 +161,12 @@
Int o = offset;
tl_assert(sz > 0);
+#if defined(VGA_ppc64be)
+ tl_assert(host_is_big_endian());
+#elif defined(VGA_ppc64le)
+ tl_assert(host_is_little_endian());
+#endif
+
if (sz == 8 || sz == 4) {
/* The point of this is to achieve
if ((o == GOF(GPRn) && sz == 8) || (o == 4+GOF(GPRn) && sz == 4))
@@ -371,11 +377,6 @@
Int o = offset;
Int sz = szB;
tl_assert(sz > 0);
-#if defined(VGA_ppc64be)
- tl_assert(host_is_big_endian());
-#elif defined(VGA_ppc64le)
- tl_assert(host_is_little_endian());
-#endif
if (o == GOF(GPR0) && sz == 4) return o;
if (o == GOF(GPR1) && sz == 4) return o;
|