diff options
author | Guenter Roeck <linux@roeck-us.net> | 2023-07-05 20:59:37 -0700 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2023-07-10 22:29:15 +1000 |
commit | 49554856f0b6f622ab6afdcc275d4ab2ecb3625c (patch) | |
tree | 81b483c39ec5267eb336489176da74ea26247686 /dump | |
parent | c5cc248b478bc21e50845ba6b2414c4a688e195f (diff) | |
download | qemu-49554856f0b6f622ab6afdcc275d4ab2ecb3625c.zip qemu-49554856f0b6f622ab6afdcc275d4ab2ecb3625c.tar.gz qemu-49554856f0b6f622ab6afdcc275d4ab2ecb3625c.tar.bz2 |
riscv: Generate devicetree only after machine initialization is complete
If the devicetree is created before machine initialization is complete,
it misses dynamic devices. Specifically, the tpm device is not added
to the devicetree file and is therefore not instantiated in Linux.
Load/create devicetree in virt_machine_done() to solve the problem.
Cc: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Cc: Alistair Francis <alistair23@gmail.com>
Cc: Daniel Henrique Barboza <dbarboza@ventanamicro.c>
Fixes: 325b7c4e75 hw/riscv: Enable TPM backends
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230706035937.1870483-1-linux@roeck-us.net>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'dump')
0 files changed, 0 insertions, 0 deletions