]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Skip global TLB when calculating replaced TLB
authorBibo Mao <maobibo@loongson.cn>
Thu, 9 Oct 2025 02:59:32 +0000 (10:59 +0800)
committerBibo Mao <maobibo@loongson.cn>
Wed, 15 Oct 2025 03:00:47 +0000 (11:00 +0800)
commitf72848e31fbe30377ce8ed3b1ce9be7346933d34
tree4ed91eff10f5434b94809ddf1b815d5aad7ec0bb
parent2e9ff01a912997c4af066aab5e43a52db6c68aaf
target/loongarch: Skip global TLB when calculating replaced TLB

When new TLB entry is added, TLB index is calculated from invalid
entry at first and then from different ASID, and randomly at last.

With different ASID, global TLB should be skipped since ASID is not
useful when global TLB is added.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
target/loongarch/tcg/tlb_helper.c