From 61adfa38b27aaf992502414639155b8eea1ed1b7 Mon Sep 17 00:00:00 2001 From: Ivana Mitrovic Date: Fri, 1 Mar 2024 11:25:00 -0800 Subject: [PATCH] stdlib: Fix initialization for self.pic.hart_config in lupv_board (#904) Previously merged PR #886 created pic.hart_config, but it was not initialized properly in lupv_board.py. This issue is causing daily tests to fail. Change-Id: I193ff4a3e5ef787eefcf066404e762f024fa6603 --------- Co-authored-by: Yu-Cheng Chang --- src/python/gem5/components/boards/experimental/lupv_board.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/gem5/components/boards/experimental/lupv_board.py b/src/python/gem5/components/boards/experimental/lupv_board.py index 62ecfd59e4..326f944bf4 100644 --- a/src/python/gem5/components/boards/experimental/lupv_board.py +++ b/src/python/gem5/components/boards/experimental/lupv_board.py @@ -185,7 +185,9 @@ class LupvBoard(AbstractSystemBoard, KernelDiskWorkload): # point for our bbl to use upon startup, and will # remain unused during the simulation self.pic.n_src = 0 - self.pic.hart_config = "" + self.pic.hart_config = ",".join( + ["M" for _ in range(self.processor.get_num_cores())] + ) self.lupio_pic.n_src = max(pic_srcs) + 1 self.lupio_pic.num_threads = self.processor.get_num_cores()