This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to set endianness in ARM Cortex-A8

Hi,actually i need to run big endian code but i don't know how to set endian option in cp15 registers could any suggest me how to set EE bit set

Parents
  • On ARM-v7 there is no such thing as big endian storage of code. All memory accesses made by the instruction-side memory system are always little endian. It's nothing to do with the tool chain; the ARM Architecture physically restricts instruction-side accesses to being little endian and this cannot be changed.

    Data accesses, for example reading data off a ethernet chipset which is normally receive a bigendian byte stream, can be either big or little endian. The data-side memory system can be configured dynamically as such at runtime. It is entirely valid code code stored as little endian to make a data access to a big endian data resource.

Reply
  • On ARM-v7 there is no such thing as big endian storage of code. All memory accesses made by the instruction-side memory system are always little endian. It's nothing to do with the tool chain; the ARM Architecture physically restricts instruction-side accesses to being little endian and this cannot be changed.

    Data accesses, for example reading data off a ethernet chipset which is normally receive a bigendian byte stream, can be either big or little endian. The data-side memory system can be configured dynamically as such at runtime. It is entirely valid code code stored as little endian to make a data access to a big endian data resource.

Children
No data