• Ley Foon Tan's avatar
    nios2: fix cache coherency issue when debug with gdb · 4a89c308
    Ley Foon Tan authored
    Remove the end address checking for flushda function. We need to flush
    each address line for flushda instruction, from start to end address.
    This is because flushda instruction only flush the cache if tag and line
    fields are matched.
    
    Change to use ldwio instruction (bypass cache) to load the instruction
    that causing trap. Our interest is the actual instruction that executed
    by the processor, this should be uncached.
    Note, EA address might be an userspace cached address.
    Signed-off-by: default avatarLey Foon Tan <lftan@altera.com>
    4a89c308
cacheflush.c 6.61 KB