diff --git a/src/python/gem5/components/boards/abstract_board.py b/src/python/gem5/components/boards/abstract_board.py index cd6f559937..7461a29676 100644 --- a/src/python/gem5/components/boards/abstract_board.py +++ b/src/python/gem5/components/boards/abstract_board.py @@ -160,6 +160,15 @@ class AbstractBoard: """ return self.cache_line_size + def get_devices(self): + """Get the devices connected to the board. + + Currently, this is only used for GPUs by the ViperBoard. + + :returns: The devices connected to the board or None. + """ + return None + def connect_system_port(self, port: Port) -> None: self.system_port = port diff --git a/src/python/gem5/prebuilt/viper/board.py b/src/python/gem5/prebuilt/viper/board.py index bb13e92ed1..c9a0946056 100644 --- a/src/python/gem5/prebuilt/viper/board.py +++ b/src/python/gem5/prebuilt/viper/board.py @@ -73,6 +73,7 @@ class ViperBoard(X86Board): self._gpus = gpus + @overrides(AbstractBoard) def get_devices(self): return self._gpus