• Paul Mundt's avatar
    sh: Migrate from PG_mapped to PG_dcache_dirty. · 2277ab4a
    Paul Mundt authored
    This inverts the delayed dcache flush a bit to be more in line with other
    platforms. At the same time this also gives us the ability to do some
    more optimizations and cleanup. Now that the update_mmu_cache() callsite
    only tests for the bit, the implementation can gradually be split out and
    made generic, rather than relying on special implementations for each of
    the peculiar CPU types.
    
    SH7705 in 32kB mode and SH-4 still need slightly different handling, but
    this is something that can remain isolated in the varying page copy/clear
    routines. On top of that, SH-X3 is dcache coherent, so there is no need
    to bother with any of these tests in the PTEAEX version of
    update_mmu_cache(), so we kill that off too.
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    2277ab4a
pg-sh7705.c 2.32 KB