x86: emulation: Set an MTRR for the RAM
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:47 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commit790baef3b93e0f194bca266f32f620898b84951f
tree6678a57054a32b6954267cb4ac8f815765de06e7
parent66c9ade35b520510856511ed388aee138c5eb388
x86: emulation: Set an MTRR for the RAM

QEMU likes to have an MTRR set up, just like real machines. Add an MTRR
which covers the total RAM size.

This does nothing on machines without MTRRs.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/qemu/dram.c