]> git.baikalelectronics.ru Git - uboot.git/commit
arm: qemu: enable LPAE on 32-bit
authorArd Biesheuvel <ardb@kernel.org>
Tue, 7 Jul 2020 10:07:08 +0000 (12:07 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 29 Jul 2020 12:43:40 +0000 (08:43 -0400)
commit95b9034b313fe1b7893b5d825ff61acde96bcec5
treed478633f6fe652b814c2441c6dfea10c5f844792
parente65cccb5eea28a56d000b62ea23cfb24c5887894
arm: qemu: enable LPAE on 32-bit

QEMU's mach-virt machine only supports selecting CPU models that
implement the virtualization extensions, and are therefore guaranteed
to support LPAE as well.

Initially, QEMU would not allow emulating these CPUs running in HYP
mode (or EL2, for AArch64), but today, it also contains a complete
implementation of the virtualization extensions themselves.

This means we could be running U-Boot in HYP mode, in which case the
LPAE long descriptor page table format is the only format that is
supported. If we are not running in HYP mode, we can use either.

So let's enable CONFIG_ARMV7_LPAE for qemu_arm_defconfig so that we
get the best support for running with the MMU and caches enabled at
any privilege level.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
configs/qemu_arm_defconfig