diff options
-rw-r--r-- | src/sim/byteswap.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/byteswap.hh b/src/sim/byteswap.hh index fc36bdf33..3a0f7ce8a 100644 --- a/src/sim/byteswap.hh +++ b/src/sim/byteswap.hh @@ -167,7 +167,7 @@ template <typename T> inline T betoh(T value) {return swap_byte(value);} namespace BigEndianGuest { - const bool ByteOrderDiffers = (HostByteOrder != BigEndianByteOrder); + const ByteOrder GuestByteOrder = BigEndianByteOrder; template <typename T> inline T gtole(T value) {return betole(value);} template <typename T> @@ -184,7 +184,7 @@ namespace BigEndianGuest namespace LittleEndianGuest { - const bool ByteOrderDiffers = (HostByteOrder != LittleEndianByteOrder); + const ByteOrder GuestByteOrder = LittleEndianByteOrder; template <typename T> inline T gtole(T value) {return value;} template <typename T> |