On 8/9/22 21:40, Daniel Henrique Barboza wrote:
This will enable support for 'dumpdtb' QMP/HMP command for the sam460ex
machine.

Setting machine->fdt requires a MachineState pointer to be used inside
sam460ex_load_device_tree(). Let's change the function to receive this
pointer from the caller. 'ramsize' and 'kernel_cmdline' can be retrieved
directly from the 'machine' pointer.

Cc: BALATON Zoltan <bala...@eik.bme.hu>
Reviewed-by: BALATON Zoltan <bala...@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb...@gmail.com>
---
  hw/ppc/sam460ex.c | 21 +++++++++++----------
  1 file changed, 11 insertions(+), 10 deletions(-)


Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>

Reply via email to