nios2: enable instruction/data caches

The caches get initialized on boot and flushed after XIP copy
takes place.

Change-Id: I642a14232835a0cf41e007860f5cdb8a2ade1f50
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-29 11:29:51 -07:00 committed by Inaky Perez-Gonzalez
commit 231e617593
6 changed files with 170 additions and 6 deletions

View file

@ -200,6 +200,18 @@ static ALWAYS_INLINE int _IS_IN_ISR(void)
void _irq_do_offload(void);
#endif
#if NIOS2_ICACHE_SIZE > 0
void _nios2_icache_flush_all(void);
#else
#define _nios2_icache_flush_all() do { } while (0)
#endif
#if NIOS2_DCACHE_SIZE > 0
void _nios2_dcache_flush_all(void);
#else
#define _nios2_dcache_flush_all() do { } while (0)
#endif
#endif /* _ASMLANGUAGE */
#endif /* _NANO_PRIVATE_H */