4.5.1. 函数列表

4.5.1.1. Function gx_icache_disable


void gx_icache_disable(void)

关闭 icache

4.5.1.2. Function gx_icache_disable_profile


void gx_icache_disable_profile(void)

关闭 icache 信息统计

4.5.1.3. Function gx_icache_enable


void gx_icache_enable(void)

使能 icache

4.5.1.4. Function gx_icache_enable_profile


void gx_icache_enable_profile(void)

使能 icache 信息统计

4.5.1.5. Function gx_icache_get_access_time


uint32_t gx_icache_get_access_time(void)

获取 icache 命中次数

返回

uint32_t icache 命中次数

4.5.1.6. Function gx_icache_get_miss_time


uint32_t gx_icache_get_miss_time(void)

获取 icache 不命中次数

返回

uint32_t icache 不命中次数

4.5.1.7. Function gx_icache_get_status


int gx_icache_get_status(void)

获取 icache 状态

4.5.1.8. Function gx_icache_init


void gx_icache_init(void)

初始化 icache

4.5.1.9. Function gx_icache_invalid


void gx_icache_invalid(void)

无效所有 icache 中的数据

4.5.1.10. Function gx_icache_reset_profile


void gx_icache_reset_profile(void)

icache 信息统计数据清零

4.5.1.11. Function gx_l2_icache_disable


void gx_l2_icache_disable(void)

4.5.1.12. Function gx_l2_icache_disable_profile


void gx_l2_icache_disable_profile(void)

4.5.1.13. Function gx_l2_icache_enable


void gx_l2_icache_enable(void)

4.5.1.14. Function gx_l2_icache_enable_profile


void gx_l2_icache_enable_profile(void)

4.5.1.15. Function gx_l2_icache_get_hit_time


uint32_t gx_l2_icache_get_hit_time(void)

4.5.1.16. Function gx_l2_icache_get_miss_time


uint32_t gx_l2_icache_get_miss_time(void)

4.5.1.17. Function gx_l2_icache_get_status


uint32_t gx_l2_icache_get_status(void)

4.5.1.18. Function gx_l2_icache_init


void gx_l2_icache_init(void)

4.5.1.19. Function gx_l2_icache_reset_profile


void gx_l2_icache_reset_profile(void)

4.5.1.20. Function gx_dcache_clean


void gx_dcache_clean(void)

刷新 cache 中所有的脏数据到内存

4.5.1.21. Function gx_dcache_clean_invalid


void gx_dcache_clean_invalid(void)

刷新 cache 的脏数据到内存, 并无效 cache 中的数据

4.5.1.22. Function gx_dcache_clean_invalid_range


void gx_dcache_clean_invalid_range(uint32_t *addr, int32_t dsize)

根据给定的地址和大小,刷新和无效 cache 中的数据

参数
  • addr -- 起始地址 需要 32 字节对齐

  • dsize -- 大小 需要 32 字节对齐

4.5.1.23. Function gx_dcache_clean_range


void gx_dcache_clean_range(uint32_t *addr, int32_t dsize)

根据给定的地址和大小,刷新 cache 中的数据

参数
  • addr -- 起始地址 需要 32 字节对齐

  • dsize -- 大小 需要 32 字节对齐

4.5.1.24. Function gx_dcache_disable


void gx_dcache_disable(void)

关闭 dcache

4.5.1.25. Function gx_dcache_disable_profile


void gx_dcache_disable_profile(void)

关闭 dcache 信息统计

4.5.1.26. Function gx_dcache_enable


void gx_dcache_enable(void)

使能 dcache

4.5.1.27. Function gx_dcache_enable_profile


void gx_dcache_enable_profile(void)

使能 dcache 信息统计

4.5.1.28. Function gx_dcache_get_access_time


uint32_t gx_dcache_get_access_time(void)

获取 dcache 命中次数

返回

uint32_t 命中次数

4.5.1.29. Function gx_dcache_get_miss_time


uint32_t gx_dcache_get_miss_time(void)

获取 dcache 不命中次数

返回

uint32_t 不命中次数

4.5.1.30. Function gx_dcache_get_status


int gx_dcache_get_status(void)

获取 dcache 状态

4.5.1.31. Function gx_dcache_invalid


void gx_dcache_invalid(void)

无效所有 cache 中的数据

4.5.1.32. Function gx_dcache_invalid_range


void gx_dcache_invalid_range(uint32_t *addr, int32_t dsize)

根据给定的地址和大小,无效 cache 中的数据

参数
  • addr -- 起始地址 需要 32 字节对齐

  • dsize -- 大小 需要 32 字节对齐

4.5.1.33. Function gx_dcache_reset_profile


void gx_dcache_reset_profile(void)

dcache 信息统计数据清零