Deleted Added
sdiff udiff text old ( 4968:f1c856d8c460 ) new ( 4997:e7380529bd2d )
full compact
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 23 unchanged lines hidden (view full) ---

32from m5 import build_env
33from Bus import Bus
34from InstTracer import InstTracer
35from ExeTracer import ExeTracer
36import sys
37
38default_tracer = ExeTracer()
39
40if build_env['FULL_SYSTEM']:
41 if build_env['TARGET_ISA'] == 'alpha':
42 from AlphaTLB import AlphaDTB, AlphaITB
43
44 if build_env['TARGET_ISA'] == 'sparc':
45 from SparcTLB import SparcDTB, SparcITB
46
47class BaseCPU(SimObject):
48 type = 'BaseCPU'
49 abstract = True
50
51 system = Param.System(Parent.any, "system object")
52 cpu_id = Param.Int("CPU identifier")
53
54 if build_env['FULL_SYSTEM']:
55 do_quiesce = Param.Bool(True, "enable quiesce instructions")
56 do_checkpoint_insts = Param.Bool(True,
57 "enable checkpoint pseudo instructions")
58 do_statistics_insts = Param.Bool(True,
59 "enable statistics pseudo instructions")
60
61 if build_env['TARGET_ISA'] == 'sparc':
62 dtb = Param.SparcDTB(SparcDTB(), "Data TLB")
63 itb = Param.SparcITB(SparcITB(), "Instruction TLB")
64 elif build_env['TARGET_ISA'] == 'alpha':
65 dtb = Param.AlphaDTB(AlphaDTB(), "Data TLB")
66 itb = Param.AlphaITB(AlphaITB(), "Instruction TLB")
67 else:
68 print "Unknown architecture, can't pick TLBs"
69 sys.exit(1)
70 else:
71 workload = VectorParam.Process("processes to run")
72
73 max_insts_all_threads = Param.Counter(0,
74 "terminate when all threads have reached this inst count")
75 max_insts_any_thread = Param.Counter(0,
76 "terminate when any thread reaches this inst count")
77 max_loads_all_threads = Param.Counter(0,
78 "terminate when all threads have reached this load count")
79 max_loads_any_thread = Param.Counter(0,
80 "terminate when any thread reaches this load count")

--- 33 unchanged lines hidden ---