arch: Simplify PCI space address handling in AArch64 FDT

Before Virtio-mmio was removed, we passed an optional PCI space address
parameter to AArch64 code for generating FDT. The address is none if the
transport is MMIO.
Now Virtio-PCI is the only option, the parameter is mandatory.

Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
Michael Zhao
2020-10-21 17:52:21 +08:00
committed by Rob Bradford
parent e83d99ab10
commit 0b0596ef30
3 changed files with 5 additions and 7 deletions

View File

@@ -963,7 +963,7 @@ impl Vm {
.ok_or(Error::MemOverflow)?
+ 1;
let pci_space = Some((pci_space_start.0, pci_space_size));
let pci_space = (pci_space_start.0, pci_space_size);
// Call `configure_system` and pass the GIC devices out, so that
// we can register the GIC device to the device manager.
@@ -2035,7 +2035,7 @@ mod tests {
&dev_info,
&*gic,
&None,
&None,
&(0x1_0000_0000, 0x1_0000),
)
.is_ok())
}