Simulation.py (3447:258e3c319f6f) Simulation.py (3448:bb2632fa57dc)
1# Copyright (c) 2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 16 unchanged lines hidden (view full) ---

25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Lisa Hsu
28
29from os import getcwd
30import m5
31from m5.objects import *
32m5.AddToPath('../common')
1# Copyright (c) 2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 16 unchanged lines hidden (view full) ---

25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Lisa Hsu
28
29from os import getcwd
30import m5
31from m5.objects import *
32m5.AddToPath('../common')
33from Caches import *
33from Caches import L1Cache
34
35def run(options, root, testsys):
36 if options.maxtick:
37 maxtick = options.maxtick
38 elif options.maxtime:
39 simtime = int(options.maxtime * root.clock.value)
40 print "simulating for: ", simtime
41 maxtick = simtime

--- 136 unchanged lines hidden ---
34
35def run(options, root, testsys):
36 if options.maxtick:
37 maxtick = options.maxtick
38 elif options.maxtime:
39 simtime = int(options.maxtime * root.clock.value)
40 print "simulating for: ", simtime
41 maxtick = simtime

--- 136 unchanged lines hidden ---