This function sets up ARM license, simulation name, and minimum
synchronize latency in FastModels. This function should be called once
per simulation.
Change-Id: Ic3408955aaff9f8b4e2b72d2f2b0da97b41bfc3f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22183
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
return _m5.arm_fast_model.scx_get_min_sync_latency(arg)
else:
return _m5.arm_fast_model.scx_get_min_sync_latency()
+
+# This should be called once per simulation
+def setup_simulation(sim_name, min_sync_latency=100.0 / 100000000):
+ set_armlmd_license_file()
+ scx_initialize(sim_name)
+ scx_set_min_sync_latency(min_sync_latency)