learning-gem5: use f-string for print

Change-Id: If27af6524af4e4a6a59e914e9e40ba10de24adf4
This commit is contained in:
ivanaamit
2023-10-04 17:07:03 -07:00
parent 58140bba1f
commit 486763b671
8 changed files with 16 additions and 16 deletions

View File

@@ -73,6 +73,6 @@ system.cpu.createThreads()
root = Root(full_system=False, system=system)
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -73,6 +73,6 @@ system.cpu.createThreads()
root = Root(full_system=False, system=system)
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -113,6 +113,6 @@ root = Root(full_system=False, system=system)
# instantiate all of the objects we've created above
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -140,6 +140,6 @@ root = Root(full_system=False, system=system)
# instantiate all of the objects we've created above
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -50,6 +50,6 @@ root.hello.goodbye_object = GoodbyeObject(buffer_size="100B")
# instantiate all of the objects we've created above
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -48,6 +48,6 @@ root.hello = SimpleObject()
# instantiate all of the objects we've created above
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -103,6 +103,6 @@ root = Root(full_system=False, system=system)
# instantiate all of the objects we've created above
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")

View File

@@ -101,6 +101,6 @@ root = Root(full_system=False, system=system)
# instantiate all of the objects we've created above
m5.instantiate()
print("Beginning simulation!")
print(f"Beginning simulation!")
exit_event = m5.simulate()
print("Exiting @ tick %i because %s" % (m5.curTick(), exit_event.getCause()))
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}")