Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: [RVDS] Disabling strict alignment of data - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[RVDS] Disabling strict alignment of data Rate Topic: ****- 1 Votes

#1 User is offline   vinaykumar m 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 23-July 12

Posted 23 July 2012 - 01:20 PM

Hi all,


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.



0

#2 User is offline   ttfn 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 576
  • Joined: 29-September 06

Posted 23 July 2012 - 02:12 PM

Have you set up the MMU?

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.
1

#3 User is offline   vinaykumar m 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 23-July 12

Posted 25 July 2012 - 06:43 AM

View Postttfn, on 23 July 2012 - 02:12 PM, said:

Have you set up the MMU?

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.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic