Arm Community
Site
Search
User
Site
Search
User
Groups
Research Collaboration and Enablement
DesignStart
Education Hub
Innovation
Open Source Software and Platforms
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello Forum
Operating Systems forum
SoC Design and Simulation forum
中文社区论区
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Innovation blog
Internet of Things (IoT) blog
Operating Systems blog
Research Articles
SoC Design and Simulation blog
Tools, Software and IDEs blog
中文社区博客
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Arm Development Studio forum
LDM for ARMv6 with RVDS 2.2.1
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
121 subscribers
Views
2196 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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
LDM for ARMv6 with RVDS 2.2.1
Offline
Naresh Sharma
over 9 years ago
Note: This was originally posted on 30th July 2010 at
http://forums.arm.com
Hi All,
I'm trying to use LDM for ARMv6 with RVDS 2.2.1 (AXD 1.3.1 build 98) for unaligned memory access. Processor is ARM1136J-S for both build and AXD debug.
However, LDM results in data abort exception. LDR does not exhibit this error.
My questions are
1. Is it ARMv6 feature/ known-behaviour for LDM or is it RVDS 2.2.1/AXD 1.3.1 bug?
2. I see some usage of LDR/ LDM with dest register same as source register. I was wondering how ARM takes care to access the memory location from one register and then write data to the same register! I'm concerned with data-path to and fro the register. Any insights?
Thank you for all help and guidance,
Naresh
Parents
Offline
Martin Weidmann
over 9 years ago
Note: This was originally posted on 30th July 2010 at
http://forums.arm.com
I had thought that AXD did not have ARM11 support, but its a long time since I last used it. Anyway...
If LDR works for the same address, than I would suspect address alignment. The ARM11s (when correctly configured) support unaligned accesses - but only with certain instructions. LDMs must always be word aligned, but not LDRs. So that could be the problem. If you look at the DFSR on entry to the abort it should confirm whether it is alignment or not.
For 2, this is fine - as long as you do not specify the '!' which updates the address register. So...
LDM r1, {r0-r4) would be ok
LDM r1!, {r0-r4} is not ok
In the first case, the pipeline handles the updates in the correct order.
Cancel
Up
0
Down
Cancel
Reply
Offline
Martin Weidmann
over 9 years ago
Note: This was originally posted on 30th July 2010 at
http://forums.arm.com
I had thought that AXD did not have ARM11 support, but its a long time since I last used it. Anyway...
If LDR works for the same address, than I would suspect address alignment. The ARM11s (when correctly configured) support unaligned accesses - but only with certain instructions. LDMs must always be word aligned, but not LDRs. So that could be the problem. If you look at the DFSR on entry to the abort it should confirm whether it is alignment or not.
For 2, this is fine - as long as you do not specify the '!' which updates the address register. So...
LDM r1, {r0-r4) would be ok
LDM r1!, {r0-r4} is not ok
In the first case, the pipeline handles the updates in the correct order.
Cancel
Up
0
Down
Cancel
Children
No data