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
  • The address isn't 8-byte aligned - but I would have thought it should still have worked.

    Check that alignment check is disabled, if the A bit in SCTLR_EL1 (or whatever level) is set then alignment checks are enabled.

Reply
  • The address isn't 8-byte aligned - but I would have thought it should still have worked.

    Check that alignment check is disabled, if the A bit in SCTLR_EL1 (or whatever level) is set then alignment checks are enabled.

Children