summaryrefslogtreecommitdiff
path: root/configs/test/test.py
blob: 695d84b73a8997c3f95ad9acde7512d72379bafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from m5 import *

class HelloWorld(AlphaLiveProcess):
    executable = '../configs/test/hello'
    cmd = 'hello'

magicbus = Bus()
mem = PhysicalMemory()
cpu = SimpleCPU(workload=HelloWorld(), mem=magicbus)
system = System(physmem=mem, cpu=cpu)
system.c1 =  Connector(side_a=mem, side_b=magicbus)
root = Root(system=system)