]> git.proxmox.com Git - mirror_qemu.git/commit
hw/openrisc/openrisc_sim: Add automatic device tree generation
authorStafford Horne <shorne@gmail.com>
Wed, 9 Feb 2022 21:39:12 +0000 (06:39 +0900)
committerStafford Horne <shorne@gmail.com>
Sat, 26 Feb 2022 01:39:36 +0000 (10:39 +0900)
commit5852c1f86529ca6f4055a69d1683f91384fceaed
treee2523b6041e798e5bf56666c50d6f5f928d3f462
parentf42e09e6a6b3dd996419fe0e6c1bbc68898f3a6e
hw/openrisc/openrisc_sim: Add automatic device tree generation

Using the device tree means that qemu can now directly tell
the kernel what hardware is configured rather than use having
to maintain and update a separate device tree file.

This patch adds automatic device tree generation support for the
OpenRISC simulator.  A device tree is built up based on the state of the
configure openrisc simulator.

This is then dumped to memory and the load address is passed to the
kernel in register r3.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
configs/targets/or1k-softmmu.mak
hw/openrisc/meson.build
hw/openrisc/openrisc_sim.c