pc: Rearrange pc_system_firmware_init()'s legacy -drive loop
commitc8d8ef00a121ee7326c87a76cc9f49716ed68917
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 May 2019 11:55:01 +0000 (7 12:55 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 May 2019 11:55:01 +0000 (7 12:55 +0100)
treefae1c4b1ed1ca2849b82670e796220c9fee675c1
parent19eb2d4e736dc895f31fbd6b520e514f10cc08e0
pc: Rearrange pc_system_firmware_init()'s legacy -drive loop

The loop does two things: map legacy -drive to properties, and collect
all the backends for use after the loop.  The next patch will factor
out the former for reuse in hw/arm/virt.c.  To make that easier,
rearrange the loop so it does the first thing first, and the second
thing second.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190416091348.26075-2-armbru@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/i386/pc_sysfw.c