summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authorStafford Horne2022-02-09 22:39:12 +0100
committerStafford Horne2022-02-26 02:39:36 +0100
commit5852c1f86529ca6f4055a69d1683f91384fceaed (patch)
treee2523b6041e798e5bf56666c50d6f5f928d3f462 /configs
parenthw/openrisc/openrisc_sim: Increase max_cpus to 4 (diff)
downloadqemu-5852c1f86529ca6f4055a69d1683f91384fceaed.tar.gz
qemu-5852c1f86529ca6f4055a69d1683f91384fceaed.tar.xz
qemu-5852c1f86529ca6f4055a69d1683f91384fceaed.zip
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>
Diffstat (limited to 'configs')
-rw-r--r--configs/targets/or1k-softmmu.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/targets/or1k-softmmu.mak b/configs/targets/or1k-softmmu.mak
index 1dfb93e46d..9e1d4a1fb1 100644
--- a/configs/targets/or1k-softmmu.mak
+++ b/configs/targets/or1k-softmmu.mak
@@ -1,2 +1,3 @@
TARGET_ARCH=openrisc
TARGET_WORDS_BIGENDIAN=y
+TARGET_NEED_FDT=y