Hi All,
I am a new user of gem5. I am following the slides available on following
link.
I am running following configuration script. Lines whic prodcue error are
marked by comments
--------------------------------------------------------
import m5
from m5.objects import *
MyCache=BaseCache(assoc=2, mshrs = 10, tgts_per_mshr=5, hit_latency=1,
response_latency=2)
MyL1Cache=MyCache(is_top_level= True)
mycpu = TimingSimpleCPU(cpu_id=0)
mycpu.addTwoLevelCacheHierarchy(MyL1Cache(size = '128kB'),
MyL1Cache(size = '256kB'),
MyCache(size = '2MB', hit_latency=2,
response_latency=4)
)
mysystem = System(cpu=mycpu,
cache_line_size = '64',
physmem = SimpleMemory(),
membus = Bus()# İt says in error that System has no attribute
"membus"
)
# create the interrupt controller
mycpu.createInterruptController()
mycpu.connectAllPorts(system.membus)# Again same error message that is
System has no attribute "membus"
mycpu.clock= '2GHz'#Error message: TimingSimple CPU has no attribute "clock"
root = Root(full_system=False,system = mysystem)
root.system.cpu.workload=LiveProcess(cmd= 'hello', executable
='/home/naveed/Desktop/gem5/tests/test-progs/hello/bin/arm/linux')
# instantiate configuration
m5.instantiate(root)#Error in unproxying param 'clk_domain' of system
exit_event = m5.simulate()
print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()
---------------------------------------------------------------------Will
be thankful for any help
Naveed Ul Mustafa
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users