Skip to content
Commit b61a40af authored by Huacai Chen's avatar Huacai Chen
Browse files

LoongArch: Refactor cache probe and flush methods



Current cache probe and flush methods have some drawbacks:
1, Assume there are 3 cache levels and only 3 levels;
2, Assume L1 = I + D, L2 = V, L3 = S, V is exclusive, S is inclusive.

However, the fact is I + D, I + D + V, I + D + S and I + D + V + S are
all valid. So, refactor the cache probe and flush methods to adapt more
types of cache hierarchy.

Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent a2a84e36
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment