On 6/2/25 16:12, Peter Maydell wrote:
The openrisc machines don't set MachineState::fdt to point to their
DTB blob.  This means that although the command line '-machine
dumpdtb=file.dtb' option works, the equivalent QMP and HMP monitor
commands do not, but instead produce the error "This machine doesn't
have a FDT".

Set MachineState::fdt in openrisc_load_fdt(), when we write it to
guest memory.

Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
---
  include/hw/openrisc/boot.h | 3 ++-
  hw/openrisc/boot.c         | 7 +++++--
  hw/openrisc/openrisc_sim.c | 2 +-
  hw/openrisc/virt.c         | 2 +-
  4 files changed, 9 insertions(+), 5 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to