summaryrefslogtreecommitdiffstats
path: root/hw/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pci/pci.c')
-rw-r--r--hw/pci/pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index 9f57aea..4700e95 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -2071,9 +2071,7 @@ static void pci_add_option_rom(PCIDevice *pdev, bool is_default_rom,
g_free(path);
return;
}
- if (size & (size - 1)) {
- size = 1 << qemu_fls(size);
- }
+ size = pow2ceil(size);
vmsd = qdev_get_vmsd(DEVICE(pdev));
OpenPOWER on IntegriCloud