Nios® V Processor Software Developer Handbook

ID 743810
Date 7/08/2024
Public
Document Table of Contents

10.2. Initializing Cache after Reset

After reset, the contents of the instruction cache and data cache are unknown. They must be initialized for correct operation. The data cache is initialized early in the boot sequence before the rest of the software uses it. The Nios® V processor caches cannot be turned off by software; they are always enabled. Upon reset, the processor hardware invalidates the entire instruction cache.

Programs based on the HAL need not manage the initialization of cache memory. The HAL C run-time initialization code (crt0.S) provides a default reset handler that performs cache initialization before alt_main() or main() is called.