OSDN Git Service

hw/riscv: virt: Map high mmio for PCIe
authorBin Meng <bin.meng@windriver.com>
Sat, 20 Feb 2021 14:48:07 +0000 (22:48 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 4 Mar 2021 14:43:29 +0000 (09:43 -0500)
commit19800265d407f09f333cf80dba3e975eb7bc1872
tree646c933fa11d642cd1ab6af08463982218f04d3b
parentcfeb8a17c88f50c2a6dbf1cd4b9a279df5a30ec9
hw/riscv: virt: Map high mmio for PCIe

Some peripherals require 64-bit PCI address, so let's map the high
mmio space for PCIe.

For RV32, the address is hardcoded to below 4 GiB from the highest
accessible physical address. For RV64, the base address depends on
top of RAM and is aligned to its size which is using 16 GiB for now.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210220144807.819-5-bmeng.cn@gmail.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c