arm: qemu: implement enable_caches()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 7 Jul 2020 10:07:09 +0000 (12:07 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 29 Jul 2020 12:43:40 +0000 (08:43 -0400)
commit3fa914af821496bde52d8be510224f5e69c9c8b9
tree12b8df2ef23d554ac0f52518aa0799001ddf5e17
parent6a690c47ce16459d267e10d1d4ac337d3e3d04cc
arm: qemu: implement enable_caches()

Add an override for enable_caches to enable the I and D caches, along
with the cached 1:1 mapping of all of DRAM. This is needed for running
U-Boot under virtualization with QEMU/kvm.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
board/emulation/qemu-arm/qemu-arm.c