fix(esp_rom): sync spi_flash_disable/enable_cache patches to rom implementation

This commit is contained in:
wuzhenghui
2026-03-10 14:14:01 +08:00
parent ee69886fee
commit 9ed0d4bc4e
11 changed files with 44 additions and 18 deletions
+2
View File
@@ -336,6 +336,7 @@ void IRAM_ATTR spi_flash_enable_cache(uint32_t cpuid)
#endif
}
#if !CONFIG_SPI_FLASH_ROM_IMPL
void IRAM_ATTR spi_flash_disable_cache(uint32_t cpuid, uint32_t *saved_state)
{
#if SOC_BRANCH_PREDICTOR_SUPPORTED
@@ -357,6 +358,7 @@ bool IRAM_ATTR spi_flash_cache_enabled(void)
{
return cache_hal_is_cache_enabled(CACHE_LL_LEVEL_EXT_MEM, CACHE_TYPE_ALL);
}
#endif
#if CONFIG_IDF_TARGET_ESP32S2
IRAM_ATTR void esp_config_instruction_cache_mode(void)