This patch set is continuous MMU enhancement, it is focused on TLB
search, especially on function helper_invtlb_page_asid() and function
helper_invtlb_page_asid_or_g(). The code is similiar with function
loongarch_tlb_search(), one common API loongarch_tlb_search_cb() is
added for these functions.

Also there is optimization with qemu TLB flush, invalidate_tlb_entry()
is used to flush one TLB entry rather than flush all TLB entries.

This patchset is based on patch sent at
  
https://lore.kernel.org/qemu-devel/20250730030202.3425934-1-maob...@loongson.cn/

Bibo Mao (6):
  target/loongarch: Add tlb search callback in loongarch_tlb_search()
  target/loongarch: Add common API loongarch_tlb_search_cb()
  target/loongarch: Use loongarch_tlb_search_cb in
    helper_invtlb_page_asid_or_g
  target/loongarch: Use loongarch_tlb_search_cb in
    helper_invtlb_page_asid
  target/loongarch: Only flush one TLB entry in
    helper_invtlb_page_asid_or_g
  target/loongarch: Only flush one TLB entry in helper_invtlb_page_asid

 target/loongarch/tcg/tlb_helper.c | 115 +++++++++++++++++-------------
 1 file changed, 64 insertions(+), 51 deletions(-)


base-commit: e5859141b9b6aec9e0a14dacedc9f02fe2f15844
-- 
2.39.3


Reply via email to