diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-07-24 20:34:35 +0800 |
---|---|---|
committer | Bibo Mao <maobibo@loongson.cn> | 2025-09-28 16:10:34 +0800 |
commit | 8fa3df98336ca2872dc51a8859142e8892844fb6 (patch) | |
tree | c35be3c3292c42312bc9038c7dcfbb078c5735f2 /scripts/lib/kdoc/kdoc_files.py | |
parent | 5a1d5dbccc6af262419bce69068b3cb1a1ffdb4a (diff) | |
download | qemu-8fa3df98336ca2872dc51a8859142e8892844fb6.zip qemu-8fa3df98336ca2872dc51a8859142e8892844fb6.tar.gz qemu-8fa3df98336ca2872dc51a8859142e8892844fb6.tar.bz2 |
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/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions