mips: fix swapping if openocd is running on big endian host