20 lines
684 B
Diff
20 lines
684 B
Diff
Some endian-conditional functions had incorrect signatures on BE hosts.
|
|
|
|
--- bochs.h
|
|
+++ bochs.h
|
|
@@ -627,12 +627,12 @@ BX_CPP_INLINE void WriteHostWordToLittleEndian(Bit16u *hostPtr, Bit16u nativeVar
|
|
*(hostPtr) = bx_bswap16(nativeVar16);
|
|
}
|
|
|
|
-BX_CPP_INLINE void WriteHostDWordToLittleEndian(Bit8u *hostPtr, Bit32u nativeVar32)
|
|
+BX_CPP_INLINE void WriteHostDWordToLittleEndian(Bit32u *hostPtr, Bit32u nativeVar32)
|
|
{
|
|
*(hostPtr) = bx_bswap32(nativeVar32);
|
|
}
|
|
|
|
-BX_CPP_INLINE void WriteHostQWordToLittleEndian(Bit8u *hostPtr, Bit64u nativeVar64)
|
|
+BX_CPP_INLINE void WriteHostQWordToLittleEndian(Bit64u *hostPtr, Bit64u nativeVar64)
|
|
{
|
|
*(hostPtr) = bx_bswap64(nativeVar64);
|
|
}
|