MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / flash_flush_cache

Function flash_flush_cache

core/flash.c:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void flash_flush_cache(void) {
46 /* Flush only if the cache has been used since the last flush */
47 if (flash.lastCacheLine != FLASH_CACHE_INVALID_LINE) {
48 flash.lastCacheLine = FLASH_CACHE_INVALID_LINE;
49 for (unsigned int set = 0; set < FLASH_CACHE_SETS; set++) {
50 flash.cacheTags[set].mru = flash.cacheTags[set].lru = FLASH_CACHE_INVALID_TAG;
51 }
52 }
53}
54
55uint32_t flash_touch_cache(uint32_t addr) {
56 if (unlikely(++cpu.flashTotalAccesses == 0)) {

Callers 2

flash_execute_commandFunction · 0.85
flash_resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected