roms: rework rom loading via fw
commit04babf6c6f8ccf69f1219db5fea233d679702e90
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Jan 2010 14:25:40 +0000 (8 15:25 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 12 Jan 2010 20:48:19 +0000 (12 14:48 -0600)
treee2ad26084db2f46799825b5fb0fdbd49e3c0ed82
parentd2b8117310eeed4cebb6f5fb685e57bf22fa6031
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>
(cherry picked from commit 8832cb805dcb65009b979cd8e17d75ac4b03c7e4)
hw/loader.c
hw/loader.h
hw/pc.c