From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Thu, 20 Oct 2011 15:00:09 +0800 Subject: [U-Boot] [PATCH v2] nios2: Pseudo implement dcache_status/enable/disable() In-Reply-To: <1318869306-4803-1-git-send-email-joachim.foerster@missinglinkelectronics.com> References: <201110171145.10990.vapier@gentoo.org> <1318869306-4803-1-git-send-email-joachim.foerster@missinglinkelectronics.com> Message-ID: <4E9FC6F9.6040800@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/18/2011 12:35 AM, Joachim Foerster wrote: > AFAIK the NIOS2 architecture does not have any possibility to > dynamically switch off the data cache. So _status() always reports 1 and > _enable/_disable() just issue a flush of everything. > > For example, common/cmd_elf.c depends on these symbols. > > Signed-off-by: Joachim Foerster > --- > Changes for v2: > - Remove return; from added void functions > > arch/nios2/cpu/cpu.c | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) Hi Joachim, I got this warning. Please fix it with appropriate header. Thanks. Configuring for nios2-generic board... cpu.c: In function 'dcache_enable': cpu.c:58: warning: implicit declaration of function 'flush_dcache' Best regards, Thomas