Hardware Libraries  20.1
Stratix 10 SoC Hardware Manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
L1 and L2 Cache Management API

Description

This API group provides functions for cache maintenance on the entire cache.

Functions

ALT_STATUS_CODE alt_cache_l1_data_invalidate_all (void)
 
ALT_STATUS_CODE alt_cache_l1_data_clean_all (void)
 
ALT_STATUS_CODE alt_cache_l1_data_purge_all (void)
 
ALT_STATUS_CODE alt_cache_lx_data_invalidate_all (void)
 
ALT_STATUS_CODE alt_cache_lx_data_clean_all (void)
 
ALT_STATUS_CODE alt_cache_lx_data_purge_all (void)
 

Function Documentation

ALT_STATUS_CODE alt_cache_l1_data_invalidate_all ( void  )

Invalidates the entire contents of the L1 data cache on the current CPU core.

Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.
ALT_STATUS_CODE alt_cache_l1_data_clean_all ( void  )

Cleans the entire L1 data cache for the current CPU core.

Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.
ALT_STATUS_CODE alt_cache_l1_data_purge_all ( void  )

Cleans and invalidates the entire L1 data cache for the current CPU core.

Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.
ALT_STATUS_CODE alt_cache_lx_data_invalidate_all ( void  )

Invalidates the entire contents of the L1 data cache on the current CPU core and the shared L2 cache.

Normally this is done automatically as part of alt_cache_cpu_data_enable(), but in certain circumstances it may be necessary to invalidate it manually. An example of this situation is when the address space is remapped and the processor accesses memory from the new memory area.

Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.
ALT_STATUS_CODE alt_cache_lx_data_clean_all ( void  )

Cleans the entire L1 data cache for the current CPU core and the shared L2 cache.

Normally this is done automatically as part of alt_cache_l1_data_disable(), but in certain circumstances it may be necessary to purged it manually. An example of this situation is when the address space is remapped and the processor accesses memory from the new memory area.

Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.
ALT_STATUS_CODE alt_cache_lx_data_purge_all ( void  )

Cleans and invalidates the entire L1 data cache for the current CPU core and the shared L2 cache.

Return values
ALT_E_SUCCESSThe operation was successful.
ALT_E_ERRORThe operation failed.