To just check the endianness and fail out if it's wrong, that should be a few lines in the loader to check a constant or two in the ELF header. To make it work, you would probably need to put an endian flip in the predecoder. You could either make the predecoder check whether the flip should be applied for every instruction, or put in a different predecoder in each case. The first could perform poorly but would be the easiest.

Gabe

Korey Sewell wrote:
 On M5's end, we should check

    the endianness of binaries and either complain if it isn't
    supported, or
    make it work somehow.

Good catch and points, Gabe...

How easy is that to implement?

--
----------
Korey L Sewell
Graduate Student - PhD Candidate
Computer Science & Engineering
University of Michigan
------------------------------------------------------------------------

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to