summaryrefslogtreecommitdiff
path: root/configs/test/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'configs/test/test.py')
-rw-r--r--configs/test/test.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/test/test.py b/configs/test/test.py
new file mode 100644
index 000000000..75e832f5e
--- /dev/null
+++ b/configs/test/test.py
@@ -0,0 +1,12 @@
+from m5 import *
+
+class HelloWorld(AlphaLiveProcess):
+ executable = '../configs/test/hello'
+ cmd = 'hello'
+
+magicbus = Bus()
+mem = PhysicalMemory()
+cpu = AtomicSimpleCPU(workload=HelloWorld(), mem=magicbus)
+system = System(physmem=mem, cpu=cpu)
+system.c1 = Connector(side_a=mem, side_b=magicbus)
+root = Root(system=system)