From: Wolfgang Denk Date: Tue, 26 Jun 2012 00:02:59 +0200 Subject: [U-Boot] [PATCH] arm: enable unaligned access on ARMv7 In-Reply-To: <4FE8DCE7.7090700@ti.com> References: <1338918451-10126-1-git-send-email-dev@lynxeye.de> <4FCE52FB.3020501@wwwdotorg.org> <1338923180.1377.2.camel@tellur> <20120622111501.21e1fdcc@aari01-12> <1340357816.1381.21.camel@tellur> <20120622131654.2c694a82@aari01-12> <1340365637.1381.38.camel@tellur> <4FE4ED98.2030103@ti.com> <4FE4EE13.7040206@ti.com> <20120623110113.511091c8@lilith> <20120625223445.257fef5c@lilith> <4FE8DCE7.7090700@ti.com> Message-ID: <20120625220259.5DCC02026AC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Aneesh V, In message <4FE8DCE7.7090700@ti.com> you wrote: > > > What is the (non-contrived) problem to which allowing mis-aligned > > accesses would be a solution? > > memcpy() when there is a mismatch in the alignment of source and > destination buffers. Let's say the source buffer is 4 byte aligned > but the destination buffer is only 2 byte aligned. I believe relaxed > alignment requirements will help in writing an accelerated memcpy > routine for this case. If memcpy() has problems with handling such a situation, then clearly memcpy() needs fixing. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "I dislike companies that have a we-are-the-high-priests-of-hardware- so-you'll-like-what-we-give-you attitude. I like commodity markets in which iron-and-silicon hawkers know that they exist to provide fast toys for software types like me to play with..." - Eric S. Raymond