From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Sat, 29 Mar 2008 07:08:52 +0100 Subject: [U-Boot-Users] [PATCH] SPARC: CFI flash_read64 is defined a weak function. In-Reply-To: <1206733219-23179-1-git-send-email-daniel@gaisler.com> References: <1206733219-23179-1-git-send-email-daniel@gaisler.com> Message-ID: <200803290708.52675.sr@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 On Friday 28 March 2008, Daniel Hellstrom wrote: > SPARC has implemented __raw_readq, it reads 64-bit from any 32-bit address. > SPARC CPUs implement flash_read64 which calls __raw_readq. > > For current SPARC architectures (LEON2 and LEON3) each read from the > FLASH must lead to a cache miss. This is because FLASH can not be set > non-cacheable since program code resides there, and alternatively disabling > cache is poor from performance view, or doing a cache flush between each > read is even poorer. > > Forcing a cache miss on a SPARC is done by a special instruction "lda" - > load alternative space, the alternative space number (ASI) is processor > implementation spcific and can be found by including . Added to cfi-flash repository. Thanks. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================