stdlib: add 'get_simpoint' function to se_binary_workload.py
This function is necessary to obtain the workload from a board once set. This is a stop-gap solution to get SimPoints working with SE workloads but will need revision when implementing this functionality for FS. Change-Id: Ided2b1a5867655a98730879524e0be61c3f20295 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/64551 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Melissa Jost <mkjost@ucdavis.edu>
This commit is contained in:
committed by
Bobby Bruce
parent
f1be0c808a
commit
36e5feb0de
@@ -129,7 +129,9 @@ def max_inst():
|
||||
print("end of warmup, starting to simulate SimPoint")
|
||||
warmed_up = True
|
||||
# Schedule a MAX_INSTS exit event during the simulation
|
||||
simulator.schedule_max_insts(simpoint.get_simpoint_interval())
|
||||
simulator.schedule_max_insts(
|
||||
board.get_simpoint().get_simpoint_interval()
|
||||
)
|
||||
dump()
|
||||
reset()
|
||||
yield False
|
||||
@@ -146,5 +148,5 @@ simulator = Simulator(
|
||||
# is greater than 0.
|
||||
# In here, it schedules an exit event for the first SimPoint's warmup
|
||||
# instructions
|
||||
simulator.schedule_max_insts(simpoint.get_warmup_list()[0], True)
|
||||
simulator.schedule_max_insts(board.get_simpoint().get_warmup_list()[0], True)
|
||||
simulator.run()
|
||||
|
||||
Reference in New Issue
Block a user