Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

15.1.11. alt_icache_flush()

Prototype

void alt_icache_flush (void* start, alt_u32 len)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

Yes.

Available from ISR

Yes.

Include

<sys/alt_cache.h>

Description

The alt_icache_flush() function invalidates the instruction cache for a memory region of length len bytes, starting at address start.

In processors without instruction caches, it has no effect.

Return

--