Re: [PATCH v6 2/2] target/loongarch: check tlb_ps

2025-03-04 Thread bibo mao
Song, This version is much better than before, some small nits as follows. On 2025/3/3 下午1:57, Song Gao wrote: For LoongArch th min tlb_ps is 12(4KB), for TLB code, the tlb_ps may be 0,this may case UndefinedBehavior Add a check-tlb_ps fuction to check tlb_ps, to make sure the tlb_ps is avalabl

[PATCH v6 2/2] target/loongarch: check tlb_ps

2025-03-02 Thread Song Gao
For LoongArch th min tlb_ps is 12(4KB), for TLB code, the tlb_ps may be 0,this may case UndefinedBehavior Add a check-tlb_ps fuction to check tlb_ps, to make sure the tlb_ps is avalablie. we check tlb_ps when get the tlb_ps from tlb->misc or CSR bits. 1. cpu reset set CSR_PWCL.PTBASE and CSR_STL