<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ARM Cache Issues</title><link>https://community.arm.com/developer/tools-software/tools/f/armds-forum/858/arm-cache-issues</link><description> Note: This was originally posted on 29th April 2011 at http://forums.arm.com Hello fellow ARMers! I am new to the forum, and new to ARM programming.....so go easy on me... I am trying to improve the performance of my algorithm on the ARM side of a TI</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: ARM Cache Issues</title><link>https://community.arm.com/thread/2419?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:03:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ecfdbbec-ddfc-4188-90da-e1a781668cbe</guid><dc:creator>Simon Craske</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 30th April 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Have you configured the MMU before turning it on? For example, creating some page tables in memory and setting the pagetable base register?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;s.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ARM Cache Issues</title><link>https://community.arm.com/thread/2418?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 11:03:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1b58c211-0c64-48ce-b216-80433364458c</guid><dc:creator>Mike Hooper</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 6th May 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Have you configured the MMU before turning it on? For example, creating some page tables in memory and setting the pagetable base register?&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span&gt;No. I&amp;#39;m afraid I don&amp;#39;t know how to do that. I have looked through the Tech Ref Manual but there are no &amp;quot;beginner&amp;quot; level examples.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I *did* get the cache enabled though. Turns out, I was calling the CACHE_enable function from my C code but did not save/restore the context before/after the call. After adding &amp;quot; STMFD SP!, {A4, LR}&amp;quot; and &amp;quot; LDMFD SP!, {A4, LR},&amp;#160; BX LR&amp;quot; the code works and the cache is enabled (I disabled the MMU_enable bit). This has improved the performance of my algorithm by a factor of 6, which is &amp;quot;good&amp;quot; but not where I need to be. I now need to search for some optimized ARM math libraries.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks for the help.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;MikeH&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>