• Huacai Chen's avatar
    MIPS: Loongson: Invalidate special TLBs when needed · 06e4814e
    Huacai Chen authored
    Loongson-2 has a 4 entry itlb which is a subset of jtlb, Loongson-3 has
    a 4 entry itlb and a 4 entry dtlb which are subsets of jtlb. We should
    write diag register to invalidate itlb/dtlb when flushing jtlb because
    itlb/dtlb are not totally transparent to software.
    
    For Loongson-3A R2 (and newer), we should invalidate ITLB, DTLB, VTLB
    and FTLB before we enable/disable FTLB.
    Signed-off-by: default avatarHuacai Chen <chenhc@lemote.com>
    Cc: Aurelien Jarno <aurelien@aurel32.net>
    Cc: Steven J . Hill <sjhill@realitydiluted.com>
    Cc: Fuxin Zhang <zhangfx@lemote.com>
    Cc: Zhangjin Wu <wuzhangjin@gmail.com>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/12753/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    06e4814e
mipsregs.h 62.4 KB