software/libbase/system: fix flush_l2_cache

This commit is contained in:
Florent Kermarrec 2015-06-19 09:00:14 +02:00
parent f44956bfca
commit 781869d6f9
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void flush_l2_cache(void)
register unsigned int addr; register unsigned int addr;
register unsigned int dummy; register unsigned int dummy;
for(i=0;i<2*L2_SIZE;i++) { for(i=0;i<2*L2_SIZE/4;i++) {
addr = MAIN_RAM_BASE + i*4; addr = MAIN_RAM_BASE + i*4;
#if defined (__lm32__) #if defined (__lm32__)
__asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr)); __asm__ volatile("lw %0, (%1+0)\n":"=r"(dummy):"r"(addr));