]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/openrisc: page-align FDT address
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 28 Apr 2022 10:35:16 +0000 (12:35 +0200)
committerStafford Horne <shorne@gmail.com>
Tue, 3 May 2022 20:23:37 +0000 (05:23 +0900)
commit0a923be2f6427fdf2a5769b4b8a08e26c758dfab
tree77b1a8264d14b2d47a2c6b54e972e71c5e4bba3a
parent2e3408b3cc7de4e87a9adafc8c19bfce3abec947
hw/openrisc: page-align FDT address

The QEMU-provided FDT was only being recognized by the kernel when it
was used in conjunction with -initrd. Without it, the magic bytes
wouldn't be there and the kernel couldn't load it. This patch fixes the
issue by page aligning the provided FDT.

Cc: Stafford Horne <shorne@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
hw/openrisc/openrisc_sim.c