2006-03-10 16:01:29 +01:00
|
|
|
from m5 import *
|
|
|
|
|
2006-03-15 23:04:50 +01:00
|
|
|
class HelloWorld(AlphaLiveProcess):
|
2006-03-10 16:01:29 +01:00
|
|
|
executable = '../configs/test/hello'
|
|
|
|
cmd = 'hello'
|
|
|
|
|
2006-03-26 00:34:50 +01:00
|
|
|
magicbus = Bus()
|
2006-03-30 00:39:20 +02:00
|
|
|
mem = PhysicalMemory()
|
2006-03-26 00:34:50 +01:00
|
|
|
cpu = SimpleCPU(workload=HelloWorld(), mem=magicbus)
|
2006-03-10 16:01:29 +01:00
|
|
|
system = System(physmem=mem, cpu=cpu)
|
2006-03-30 00:39:20 +02:00
|
|
|
system.c1 = Connector(side_a=mem, side_b=magicbus)
|
2006-03-10 16:01:29 +01:00
|
|
|
root = Root(system=system)
|