Learning-gem5: fix formatting (#401)

Using f-strings instead of % for formatting.
This commit is contained in:
Bobby R. Bruce
2023-10-10 16:47:37 -07:00
committed by GitHub
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()}")