From: Giacomo Travaglini Date: Wed, 25 Mar 2020 18:13:06 +0000 (+0000) Subject: dev-arm: Don't use args and kwargs on attachIO X-Git-Tag: v20.0.0.0~254 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95e676760171b0f1a1b3be4be36c129da1543ebb;p=gem5.git dev-arm: Don't use args and kwargs on attachIO This is matching the attachOnChipIO style, and fixing the error of the dma_ports kwarg being forwarded to the _attach_mem Change-Id: Ib3ecf2fc18c488d938bbbf63eab3d7693cdb7d06 Signed-off-by: Giacomo Travaglini Reviewed-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27086 Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com> Reviewed-by: Ciro Santilli --- diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py index f9b9cb2fd..43d2b1553 100644 --- a/src/dev/arm/RealView.py +++ b/src/dev/arm/RealView.py @@ -625,9 +625,9 @@ class RealView(Platform): if bridge: bridge.ranges = self._off_chip_ranges - def attachIO(self, *args, **kwargs): - self._attach_mem(self._off_chip_memory(), *args, **kwargs) - self._attach_io(self._off_chip_devices(), *args, **kwargs) + def attachIO(self, bus, dma_ports=None, mem_ports=None): + self._attach_mem(self._off_chip_memory(), bus, mem_ports) + self._attach_io(self._off_chip_devices(), bus, dma_ports) def setupBootLoader(self, cur_sys, boot_loader, atags_addr, load_offset): cur_sys.workload.boot_loader = boot_loader