target/loongarch: Correct maximum physical address in KVM mode
authorBibo Mao <maobibo@loongson.cn>
Wed, 19 Feb 2025 07:07:00 +0000 (15:07 +0800)
committerBibo Mao <maobibo@loongson.cn>
Tue, 25 Feb 2025 08:05:31 +0000 (16:05 +0800)
commit0262c8075e9dc62a53a4bd15ea8d92a4c9adf018
treeaeda4ab9d525c809da4af1da3f65473acb53709d
parent7bd4eaa847fcdbc4505d9ab95dafa21791d8302a
target/loongarch: Correct maximum physical address in KVM mode

On 3A5000 system, the physical address space width for host is 48,
however 47 bit for KVM VM. For KVM VM, size of physical address space is
the same with that of virtual user space address.

Here modify physical address space width with 47 bit in KVM mode.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
target/loongarch/cpu.c