changeset 20686329e673 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=20686329e673
description:
        sim: correct check for endianess

        Committed by: Nilay Vaish <[email protected]>

diffstat:

 src/sim/byteswap.hh |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7efee7268e87 -r 20686329e673 src/sim/byteswap.hh
--- a/src/sim/byteswap.hh       Fri Apr 03 11:42:10 2015 -0500
+++ b/src/sim/byteswap.hh       Fri Apr 03 11:42:10 2015 -0500
@@ -149,7 +149,7 @@
 
 //For conversions not involving the guest system, we can define the functions
 //conditionally based on the BYTE_ORDER macro and outside of the namespaces
-#if defined(_BIG_ENDIAN) || !defined(_LITTLE_ENDIAN) && BYTE_ORDER == 
BIG_ENDIAN
+#if (defined(_BIG_ENDIAN) || !defined(_LITTLE_ENDIAN)) && BYTE_ORDER == 
BIG_ENDIAN
 const ByteOrder HostByteOrder = BigEndianByteOrder;
 template <typename T> inline T htole(T value) {return swap_byte(value);}
 template <typename T> inline T letoh(T value) {return swap_byte(value);}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to