diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-02-06 15:12:10 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-02-24 15:03:42 +0000 |
| commit | 3c25f487bc0672bf13473f4a7235c3ef592c954c (patch) | |
| tree | 2871e85005595c9977e9efafe5d86be0aeed4214 /include/hw/openrisc/boot.h | |
| parent | cacf4cb2516aa4de94aa80fecb08be4dafa5ed44 (diff) | |
| download | focaccia-qemu-3c25f487bc0672bf13473f4a7235c3ef592c954c.tar.gz focaccia-qemu-3c25f487bc0672bf13473f4a7235c3ef592c954c.zip | |
hw/openrisc: Support monitor dumpdtb command
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.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20250206151214.2947842-3-peter.maydell@linaro.org
Diffstat (limited to 'include/hw/openrisc/boot.h')
| -rw-r--r-- | include/hw/openrisc/boot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/openrisc/boot.h b/include/hw/openrisc/boot.h index 25a313d63a..9b4d88072c 100644 --- a/include/hw/openrisc/boot.h +++ b/include/hw/openrisc/boot.h @@ -20,6 +20,7 @@ #define OPENRISC_BOOT_H #include "exec/cpu-defs.h" +#include "hw/boards.h" hwaddr openrisc_load_kernel(ram_addr_t ram_size, const char *kernel_filename, @@ -28,7 +29,7 @@ hwaddr openrisc_load_kernel(ram_addr_t ram_size, hwaddr openrisc_load_initrd(void *fdt, const char *filename, hwaddr load_start, uint64_t mem_size); -uint32_t openrisc_load_fdt(void *fdt, hwaddr load_start, +uint32_t openrisc_load_fdt(MachineState *ms, void *fdt, hwaddr load_start, uint64_t mem_size); #endif /* OPENRISC_BOOT_H */ |