• Guo Ren's avatar
    csky: Fix TLB maintenance synchronization problem · 3b756ccd
    Guo Ren authored
    TLB invalidate didn't contain a barrier operation in csky cpu and
    we need to prevent previous PTW response after TLB invalidation
    instruction. Of cause, the ASID changing also needs to take care
    of the issue.
    
    CPU0                    CPU1
    ===============         ===============
    set_pte
    sync_is()        ->     See the previous set_pte for all harts
    tlbi.vas         ->     Invalidate all harts TLB entry & flush pipeline
    Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
    3b756ccd
tlb.c 3.55 KB