Quick Links
[RVDS] Disabling strict alignment of data
#1
Posted 23 July 2012 - 01:20 PM
Iam using beagle board rev C3 and using RVDS compiler to compile ARM executables.
As my arm application code has some unaligned data when i try to use it, the code is getting exception.
so for this i followed one step, as i read it in arm site.
disabled strict alignment of data to detect alignment faults in data access, by using below code in application.
MRC p15,0,r0,c1,c0,0
AND r0,r0,#0xfffffffd
MCR p15,0,r0,c1,c0,0
but after doing this also,
iam not able to disable the strict alignment of data to detect alignment faults in data access.
Even Iam observing the same issue in ISSM simulator.
Please help me in this issue.
Thanks in advance,
Vinay.
#2
Posted 23 July 2012 - 02:12 PM
Unaligned accesses are only allowed to address regions marked as "Normal" in the translation tables. If you haven't set up the MMU yet, or haven't marked the regions as Normal, then unaligned accesses will always fail.
#3
Posted 25 July 2012 - 06:43 AM
ttfn, on 23 July 2012 - 02:12 PM, said:
Unaligned accesses are only allowed to address regions marked as "Normal" in the translation tables. If you haven't set up the MMU yet, or haven't marked the regions as Normal, then unaligned accesses will always fail.
Thanks for your suggestion.
I have setup the MMU in hardware and ISSM, now i was able to disable strict alignment of data in the code.
Thanks,
Vinay.
















