pc: acpi-build: simplify PCI bus tree generation
commitb23046abe78f48498a423b802d6d86ba0172d57f
authorIgor Mammedov <imammedo@redhat.com>
Fri, 20 Feb 2015 18:22:16 +0000 (20 18:22 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 1 Mar 2015 11:33:23 +0000 (1 12:33 +0100)
treeb1618c59869d61335390d4a19422ac2fe3dedc5d
parent71096d6cc5b4341e9b7ee59f10594d5f36ce12b9
pc: acpi-build: simplify PCI bus tree generation

it basicaly does the same as original approach,
* just without bus/notify tables tracking (less obscure)
  which is easier to follow.
* drops unnecessary loops and bitmaps,
  creating devices and notification method in the same loop.
* saves us ~100LOC

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c