]> git.proxmox.com Git - qemu.git/commit
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)
commit8832cb805dcb65009b979cd8e17d75ac4b03c7e4
tree73af84c03b08927e5e4e8719d8beb212eed2926f
parentde9352bcaed2452af1d2b06b829748676c691794
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