]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Remove unnecessary page size validity checking
authorBibo Mao <maobibo@loongson.cn>
Wed, 18 Jun 2025 03:53:28 +0000 (11:53 +0800)
committerBibo Mao <maobibo@loongson.cn>
Fri, 11 Jul 2025 06:47:15 +0000 (14:47 +0800)
commit94c874f0f2bdc048bacf9873d8d9ee9a68d44ea5
treeda012b094060577c4a88bef2d738ce0d323c20de
parent5a2e76fc8786760a8fbb42af5cd8a61ecb6aba87
target/loongarch: Remove unnecessary page size validity checking

Page size of TLB entry comes from CSR STLBPS and pwcl register. With
huge page, it is dir_base + dir_width from pwcl register. With normal
page, it is field of PTBASE from pwcl register.

So it is ok to check validity in function helper_ldpte() and function
helper_csrwr_stlbps(). And it is unnecessary in tlb entry fill path.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
target/loongarch/tcg/tlb_helper.c