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-30 10:32:54 +0800
committerBibo Mao <maobibo@loongson.cn>2025-09-28 16:10:34 +0800
commit349f3ec027cffc14ca6d7f83e2618714c7054a07 (patch)
treea7e7c1238969cd07bbd260980199e653173a4242 /scripts/qapi/visit.py
parent8fa3df98336ca2872dc51a8859142e8892844fb6 (diff)
downloadfocaccia-qemu-349f3ec027cffc14ca6d7f83e2618714c7054a07.tar.gz
focaccia-qemu-349f3ec027cffc14ca6d7f83e2618714c7054a07.zip
target/loongarch: Update TLB index selection method
With function helper_tlbfill(), since there is no suitable TLB entry,
new TLB will be added and flush one old TLB entry. The old TLB entry
index is selected randomly now, instead it can be optimized as
following:
  1. invalid TLB entry can be selected at first.
  2. TLB entry with other ASID can be selected secondly
  3. random method is used by last.

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