Learning-gem5: fix formatting (#401)
Using f-strings instead of % for formatting.
This commit is contained in:
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
@@ -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()}")
|
||||
|
||||
Reference in New Issue
Block a user