82c82,88
< arch = ObjectFile::Mips;
---
> if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) {
> arch = ObjectFile::Mips;
> } else {
> fatal("The binary you're trying to load is compiled for big "
> "endian MIPS. M5\nonly supports little endian MIPS. "
> "Please recompile your binary.\n");
> }