]> git.proxmox.com Git - mirror_qemu.git/commit
hw/ppc: set machine->fdt in bamboo_load_device_tree()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 26 Sep 2022 17:38:47 +0000 (14:38 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Oct 2022 19:15:10 +0000 (16:15 -0300)
commit8d42c851ed2f8a86e2f830d453d4c4f288007cb8
tree9a8eb6d5ea89e2b9caa5748c9a51a020ec16dadf
parent610cba317c28d1b4ecb6ea36c754c225f4b917ad
hw/ppc: set machine->fdt in bamboo_load_device_tree()

This will enable support for 'dumpdtb' QMP/HMP command for the bamboo
machine.

Setting machine->fdt requires a MachineState pointer to be used inside
bamboo_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: Cédric Le Goater <clg@kaod.org>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220926173855.1159396-9-danielhb413@gmail.com>
hw/ppc/ppc440_bamboo.c