mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
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>
This commit is contained in:
parent
f42e09e6a6
commit
5852c1f865
3 changed files with 176 additions and 16 deletions
|
@ -1,2 +1,3 @@
|
|||
TARGET_ARCH=openrisc
|
||||
TARGET_WORDS_BIGENDIAN=y
|
||||
TARGET_NEED_FDT=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue