]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Use loongarch_tlb_search_cb in helper_invtlb_page_asid_or_g
authorBibo Mao <maobibo@loongson.cn>
Thu, 4 Sep 2025 09:46:12 +0000 (17:46 +0800)
committerBibo Mao <maobibo@loongson.cn>
Sun, 28 Sep 2025 08:10:34 +0000 (16:10 +0800)
commit96e654cf3e6e03d61de447ad7117f53ed2bff998
tree8101dc193b3593420069e35a6bba7e569101563b
parent5e3ccedcf925ad4913baa953d05933df1f78e9ed
target/loongarch: Use loongarch_tlb_search_cb in helper_invtlb_page_asid_or_g

With function helper_invtlb_page_asid_or_g(), currently it is to
search TLB entry one by one. Instead STLB can be searched at first
with hash method, and then search MTLB with one by one method.

Here common API loongarch_tlb_search_cb() is used in function
helper_invtlb_page_asid_or_g().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/tcg/tlb_helper.c