Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Memory alignment while using LDR instruction in cortex A9
Jump...
Cancel
Locked
Locked
Replies
5 replies
Subscribers
118 subscribers
Views
4445 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
Memory alignment while using LDR instruction in cortex A9
ANGEL MARY NATHAN
over 12 years ago
Note: This was originally posted on 3rd August 2012 at
http://forums.arm.com
Hi,
I am facing some problem while trying to load a 32 bit value into a register by using LDR R0 [R1] where R1 is a pointer to a memory location having some value.
when i use the LDR instruction 3bytes are fetched from the location pointed by R1 and the 4th byte is 1byte before the loacation pointed by R1.
I am working on ARM Cortex A9 simulator.
Is it anything related to memory alignment?
How do i solve this?
Thanks in advance
Angel
Parents
Peter Harris
over 12 years ago
Note: This was originally posted on 7th August 2012 at
http://forums.arm.com
Based on the information you've given it looks like a bug in the simulator. The memory access pattern it is performing (accessing memory below the current address in a different word) is not something an ARM core would ever do.
Cancel
Vote up
0
Vote down
Cancel
Reply
Peter Harris
over 12 years ago
Note: This was originally posted on 7th August 2012 at
http://forums.arm.com
Based on the information you've given it looks like a bug in the simulator. The memory access pattern it is performing (accessing memory below the current address in a different word) is not something an ARM core would ever do.
Cancel
Vote up
0
Vote down
Cancel
Children
No data