dev-arm: Fix pci_mem_base setting in VExpress_GEM5_Base
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 20 Mar 2020 19:41:29 +0000 (19:41 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 30 Mar 2020 15:54:56 +0000 (15:54 +0000)
This was not actually used and DTB was generated using an hardcoded
value.

Change-Id: Ie8fd63495df5cb56418593cf0dd5432dc2992eac
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27288
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/dev/arm/RealView.py

index 43d2b1553e86053b154b2a34f7070964e3bf2760..cf57ee208a8e1a18bbdde41c35948cd20cddc236 100644 (file)
@@ -160,7 +160,7 @@ class GenericArmPciHost(GenericPciHost):
 
         # AXI memory address range
         ranges += self.pciFdtAddr(space=2, addr=0)
-        ranges += state.addrCells(0x40000000) # Fixed offset
+        ranges += state.addrCells(self.pci_mem_base)
         ranges += local_state.sizeCells(0x40000000) # Fixed size
         node.append(FdtPropertyWords("ranges", ranges))
 
@@ -1025,6 +1025,7 @@ Interrupts:
     pci_host = GenericArmPciHost(
         conf_base=0x30000000, conf_size='256MB', conf_device_bits=12,
         pci_pio_base=0x2f000000,
+        pci_mem_base=0x40000000,
         int_policy="ARM_PCI_INT_DEV", int_base=100, int_count=4)
 
     energy_ctrl = EnergyCtrl(pio_addr=0x10000000)