roms: rework rom loading via fw
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Jan 2010 14:25:40 +0000 (15:25 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 11 Jan 2010 19:41:00 +0000 (13:41 -0600)
commit9b9163fd08f41944c4a813658a170c97d3b9c23a
tree73af84c03b08927e5e4e8719d8beb212eed2926f
parent3053fbfe5490d40044b3f72c633fa8a5dc88c04a
roms: rework rom loading via fw

This patch changes the way rom loading via fw_cfg is handled.
Instead of having pc_init1() call a function which passed all
roms to the firmware config we simply pass a pointer to fw_cfg
to the rom loader.

Advantage: loading roms via firmware works also for devices which
are initialized after pc_init1(), i.e. everyting added via -device.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/loader.c
hw/loader.h
hw/pc.c