]> Git Repo - qemu.git/commit - hw/riscv/virt.c
riscv: virt: Allow PCI address 0
authorBin Meng <[email protected]>
Fri, 22 Nov 2019 15:27:52 +0000 (07:27 -0800)
committerPalmer Dabbelt <[email protected]>
Thu, 27 Feb 2020 21:46:35 +0000 (13:46 -0800)
commitacead54c78c7294612f529413673eb4286fb8b18
tree5d51df9cd926302d0dc7512acd3449bded0dd6d8
parentc9eefe05a42d05d7a6dc49805f123579e5558d5d
riscv: virt: Allow PCI address 0

When testing e1000 with the virt machine, e1000's I/O space cannot
be accessed. Debugging shows that the I/O BAR (BAR1) is correctly
written with address 0 plus I/O enable bit, but QEMU's "info pci"
shows that:

  Bus  0, device   1, function 0:
    Ethernet controller: PCI device 8086:100e
  ...
      BAR1: I/O at 0xffffffffffffffff [0x003e].
  ...

It turns out we should set pci_allow_0_address to true to allow 0
PCI address, otherwise pci_bar_address() treats such address as
PCI_BAR_UNMAPPED.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Palmer Dabbelt <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
hw/riscv/virt.c
This page took 0.025523 seconds and 4 git commands to generate.