summary refs log tree commit diff stats
path: root/scripts/qapi/visit.py
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2025-07-24 20:34:35 +0800
committerBibo Mao <maobibo@loongson.cn>2025-09-28 16:10:34 +0800
commit8fa3df98336ca2872dc51a8859142e8892844fb6 (patch)
treec35be3c3292c42312bc9038c7dcfbb078c5735f2 /scripts/qapi/visit.py
parent5a1d5dbccc6af262419bce69068b3cb1a1ffdb4a (diff)
downloadfocaccia-qemu-8fa3df98336ca2872dc51a8859142e8892844fb6.tar.gz
focaccia-qemu-8fa3df98336ca2872dc51a8859142e8892844fb6.zip
target/loongarch: Reduce TLB flush with helper_tlbwr
With function helper_tlbwr(), specified LoongArch TLB entry will be
updated. There are two PTE pages in one TLB entry called even/odd
pages. Supposing even/odd page is normal/none state, when odd page
is added, TLB entry is changed as normal/normal state and even page
keeps unchanged.

In this situation, it is not necessary to flush QEMU TLB since even
page keep unchanged and odd page is newly changed. Here check whether
PTE page is the same or not, TLB flush can be skipped if both are the
same or newly added.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/qapi/visit.py')
0 files changed, 0 insertions, 0 deletions