spi_flash: fix PSRAM rodata phys2cache mapping

Use the full rodata page range when converting flash physical addresses back to cache addresses for XIP PSRAM. RISC-V extram stack coredump tests are temporarily skipped in CI until coredump supports PSRAM task stacks (IDF-15623).
This commit is contained in:
Michael.B
2026-09-02 02:40:20 +08:00
parent 41b0ce7bff
commit d2765dfcc3
+1 -1
View File
@@ -405,7 +405,7 @@ const void * spi_flash_phys2cache(size_t phys_offs, spi_flash_mmap_memory_t memo
#endif #endif
#if CONFIG_SPIRAM_RODATA #if CONFIG_SPIRAM_RODATA
if (phys_page >= rodata_flash_start_page_get() && phys_page <= rodata_flash_start_page_get()) { if (phys_page >= rodata_flash_start_page_get() && phys_page <= rodata_flash_end_page_get()) {
target = MMU_TARGET_PSRAM0; target = MMU_TARGET_PSRAM0;
phys_offs -= rodata_flash2spiram_offset() * CONFIG_MMU_PAGE_SIZE; phys_offs -= rodata_flash2spiram_offset() * CONFIG_MMU_PAGE_SIZE;
} }