Re: [PATCH] target/loongarch: Fix valid virtual address checking

2025-07-13 Thread gaosong
在 2025/7/14 上午9:54, Bibo Mao 写道: On LoongArch64 system, the high 32 bit of 64 bit virtual address should be 0x0[0-7]yyy or 0x8yyy. The bit from 47 to 63 should be all 0 or all 1. Function get_physical_address() only checks bit 48 to 63, there will be problem with the following test case.

[PATCH] target/loongarch: Fix valid virtual address checking

2025-07-13 Thread Bibo Mao
On LoongArch64 system, the high 32 bit of 64 bit virtual address should be 0x0[0-7]yyy or 0x8yyy. The bit from 47 to 63 should be all 0 or all 1. Function get_physical_address() only checks bit 48 to 63, there will be problem with the following test case. On physical machine, there is bus