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

when and where will the LDP instruction trigger an exception ?

Hi experts,

     ldp x1, x2, [x0], #16

     x0 = 0x100004. It is a RAM address, and it is valid and available.

     This instruction will trigger an exception. why?

     If x0 = 0x100000 or x0 = 0x100008, it can work well.

    

     Thanks,

     Jorney

Parents
  • Where can I find the specification about this issue in ARMv8 Architecture Reference Manual ?

    In the current document issue (A.k).

    Section B 2.2 describes the two memory types in ARMv8 ("Normal" and "Device"); the ARMv7 "Strongly Ordered" no longer exists as a separate memory type - that has effectively been merged as sub-type of the "Device" memory type in ARMv8 (See B 2.8.2).

    Section B 2.4.2 describes the limitations on unaligned access for data accesses. Specifically:

    "An unaligned access to any type of Device memory causes an Alignment fault."

    The behaviour when translation is disabled is defined in section D4.2.8. Specifically:

    "All other accesses:

        Data access:

            The stage 1 translation assigns the Device-nGnRnE memory type."

    Cheers,
    Pete

Reply
  • Where can I find the specification about this issue in ARMv8 Architecture Reference Manual ?

    In the current document issue (A.k).

    Section B 2.2 describes the two memory types in ARMv8 ("Normal" and "Device"); the ARMv7 "Strongly Ordered" no longer exists as a separate memory type - that has effectively been merged as sub-type of the "Device" memory type in ARMv8 (See B 2.8.2).

    Section B 2.4.2 describes the limitations on unaligned access for data accesses. Specifically:

    "An unaligned access to any type of Device memory causes an Alignment fault."

    The behaviour when translation is disabled is defined in section D4.2.8. Specifically:

    "All other accesses:

        Data access:

            The stage 1 translation assigns the Device-nGnRnE memory type."

    Cheers,
    Pete

Children