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 <aucixw45876@gmail.com>
This commit is contained in:
Ivana Mitrovic
2024-03-01 11:25:00 -08:00
committed by GitHub
parent c0e5d58a96
commit 61adfa38b2

View File

@@ -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()