sort out big/little endian startup on qemu