Implement a very very simple bus
[gem5.git] / python / m5 / objects / BaseCPU.py
1 from m5 import *
2 class BaseCPU(SimObject):
3 type = 'BaseCPU'
4 abstract = True
5
6 if build_env['FULL_SYSTEM']:
7 dtb = Param.AlphaDTB("Data TLB")
8 itb = Param.AlphaITB("Instruction TLB")
9 system = Param.System(Parent.any, "system object")
10 cpu_id = Param.Int(-1, "CPU identifier")
11 else:
12 mem = Param.MemObject("memory")
13 workload = VectorParam.Process("processes to run")
14
15 max_insts_all_threads = Param.Counter(0,
16 "terminate when all threads have reached this inst count")
17 max_insts_any_thread = Param.Counter(0,
18 "terminate when any thread reaches this inst count")
19 max_loads_all_threads = Param.Counter(0,
20 "terminate when all threads have reached this load count")
21 max_loads_any_thread = Param.Counter(0,
22 "terminate when any thread reaches this load count")
23
24 defer_registration = Param.Bool(False,
25 "defer registration with system (for sampling)")
26
27 clock = Param.Clock(Parent.clock, "clock speed")