stdlib: Deprecate Simulator 'full_system' param

THis is deprecated in favor of the board determining whether the
simulation is FS or SE. Usually this will be contingent on which
`set_workload` funciton has been called. Regardless, it is the board's
responsibility. The user should not need to explicitly declare this any
longer.
This commit is contained in:
Bobby R. Bruce
2024-08-22 05:08:19 -07:00
parent 5b5f7afc1b
commit 4b3ba1daa6

View File

@@ -117,6 +117,10 @@ class Simulator:
behavior. If not set, whether or not to run in FS
mode will be determined via the board's
``is_fullsystem()`` function.
**Warning: This parameter is deprecated. The board
determines if the simulation is full system or not.
This parameter will be removed in a future gem5
release.**
:param on_exit_event: An optional map to specify what to execute on
each exit event. There are three possibilities here:
a generator, a list of functions, or a single function.
@@ -291,6 +295,15 @@ class Simulator:
"""
if full_system is not None:
warn(
"Setting the full_system parameter via the Simulator "
"constructor is deprecated and will be removed in future "
"releases of gem5. "
"The board determines if the simulation is full system or not "
"via it's `is_fullsystem` method."
)
self.set_max_ticks(max_ticks)
if id: