OSDN Git Service

RISC-V: `sfence.vma` orderes the instruction cache
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Nov 2017 22:06:17 +0000 (14:06 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Nov 2017 22:06:17 +0000 (14:06 -0800)
commitc901e45a999a1935d7adf653e1cf12dfbcd737aa
tree2d30d6656ef0d3fd57f78045830b9c21ae69a5ae
parent21db403660d1433b8a02b26d5d4084921b857c40
RISC-V: `sfence.vma` orderes the instruction cache

This is just a comment change, but it's one that bit me on the mailing
list.  It turns out that issuing a `sfence.vma` enforces instruction
cache ordering in addition to TLB ordering.  This isn't explicitly
called out in the ISA manual, but Andrew will be making that more clear
in a future revision.

CC: Andrew Waterman <andrew@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/tlbflush.h