Merge zizzer:/bk/newmem
[gem5.git] / configs / common / Simulation.py
index 8374d2fb59dc5f7bca7de6d393f83af1021083ad..61b14f0266c311534387f2002a25ceb5f600ebeb 100644 (file)
@@ -64,7 +64,7 @@ def run(options, root, testsys, cpu_class):
     if options.maxtick:
         maxtick = options.maxtick
     elif options.maxtime:
-        simtime = int(options.maxtime * root.clock.value)
+        simtime = m5.ticks.seconds(simtime)
         print "simulating for: ", simtime
         maxtick = simtime
     else: