]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Use correct address when flush tlb
authorBibo Mao <maobibo@loongson.cn>
Wed, 30 Jul 2025 01:47:55 +0000 (09:47 +0800)
committerBibo Mao <maobibo@loongson.cn>
Fri, 29 Aug 2025 02:05:02 +0000 (10:05 +0800)
commitcc78259deb21940521a227619eb00a4b8e3e36c2
tree4c8447bf1c8c966f767ef6fb894a8018c53735ae
parentf95b9702750507665f90e377b5c6c68274104024
target/loongarch: Use correct address when flush tlb

With tlb_flush_range_by_mmuidx(), the virtual address is 64 bit.
However on LoongArch TLB emulation system, virtual address is
48 bit. It is necessary to signed-extend 48 bit address to 64 bit when
flush tlb, also fix address calculation issue with odd page.

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