mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/pci-host: Use the IEC binary prefix definitions
IEC binary prefixes ease code review: the unit is explicit. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200601142930.29408-6-f4bug@amsat.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
37e7211cae
commit
51eae1e7e4
3 changed files with 6 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/units.h"
|
||||
#include "hw/sysbus.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "hw/irq.h"
|
||||
|
@ -399,8 +400,8 @@ static void pci_vpb_realize(DeviceState *dev, Error **errp)
|
|||
pci_map_irq_fn mapfn;
|
||||
int i;
|
||||
|
||||
memory_region_init(&s->pci_io_space, OBJECT(s), "pci_io", 1ULL << 32);
|
||||
memory_region_init(&s->pci_mem_space, OBJECT(s), "pci_mem", 1ULL << 32);
|
||||
memory_region_init(&s->pci_io_space, OBJECT(s), "pci_io", 4 * GiB);
|
||||
memory_region_init(&s->pci_mem_space, OBJECT(s), "pci_mem", 4 * GiB);
|
||||
|
||||
pci_root_bus_new_inplace(&s->pci_bus, sizeof(s->pci_bus), dev, "pci",
|
||||
&s->pci_mem_space, &s->pci_io_space,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue