]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Move function get_dir_base_width to common directory
authorBibo Mao <maobibo@loongson.cn>
Wed, 23 Apr 2025 08:04:11 +0000 (16:04 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 24 Apr 2025 02:00:24 +0000 (10:00 +0800)
commit885398ee09b5ee3d26d2ee670f468282c9ce8512
tree3a392141cc0b4ab5d80166fd055b87732b5e9888
parenta8d1b5bca5d234bfeaf215c079696735e5aafe71
target/loongarch: Move function get_dir_base_width to common directory

Function get_dir_base_width() is used by loongarch_page_table_walker(),
so it is used by KVM mode also, here move this function from directory
tcg to common directory.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250423080417.3739809-4-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/cpu_helper.c
target/loongarch/tcg/tlb_helper.c