1 import os
, optparse
, sys
3 from m5
.objects
import *
5 parser
= optparse
.OptionParser(option_list
=m5
.standardOptions
)
7 parser
.add_option("-t", "--timing", action
="store_true")
9 (options
, args
) = parser
.parse_args()
12 print "Error: script doesn't take any positional arguments"
15 this_dir
= os
.path
.dirname(__file__
)
17 process
= AlphaLiveProcess()
18 process
.executable
= os
.path
.join(this_dir
, 'hello')
22 mem
= PhysicalMemory()
25 cpu
= TimingSimpleCPU()
27 cpu
= AtomicSimpleCPU()
28 cpu
.workload
= process
31 system
= System(physmem
= mem
, cpu
= cpu
)
32 system
.c1
= Connector(side_a
= mem
, side_b
= magicbus
)
33 root
= Root(system
= system
)
37 exit_event
= m5
.simulate()
39 print 'Exiting @', m5
.curTick(), 'because', exit_event
.getCause()