LoongArch: Use physical addresses for CSR_MERRENTRY/CSR_TLBRENTRY

commit 4e67526840 upstream.

Now we use virtual addresses to fill CSR_MERRENTRY/CSR_TLBRENTRY, but
hardware hope physical addresses. Now it works well because the high
bits are ignored above PA_BITS (48 bits), but explicitly use physical
addresses can avoid potential bugs. So fix it.

Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Huacai Chen 2025-11-09 16:02:00 +08:00 • committed by Greg Kroah-Hartman
commit 8e5aa33ef5