MinorCPU.py (10785:f56c10663a01) MinorCPU.py (11567:560d7fbbddd1)
1# Copyright (c) 2012-2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

164 opLat = 1
165
166class MinorDefaultFUPool(MinorFUPool):
167 funcUnits = [MinorDefaultIntFU(), MinorDefaultIntFU(),
168 MinorDefaultIntMulFU(), MinorDefaultIntDivFU(),
169 MinorDefaultFloatSimdFU(), MinorDefaultMemFU(),
170 MinorDefaultMiscFU()]
171
1# Copyright (c) 2012-2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

164 opLat = 1
165
166class MinorDefaultFUPool(MinorFUPool):
167 funcUnits = [MinorDefaultIntFU(), MinorDefaultIntFU(),
168 MinorDefaultIntMulFU(), MinorDefaultIntDivFU(),
169 MinorDefaultFloatSimdFU(), MinorDefaultMemFU(),
170 MinorDefaultMiscFU()]
171
172class ThreadPolicy(Enum): vals = ['SingleThreaded', 'RoundRobin', 'Random']
173
172class MinorCPU(BaseCPU):
173 type = 'MinorCPU'
174 cxx_header = "cpu/minor/cpu.hh"
175
176 @classmethod
177 def memory_mode(cls):
178 return 'timing'
179
180 @classmethod
181 def require_caches(cls):
182 return True
183
184 @classmethod
185 def support_take_over(cls):
186 return True
187
174class MinorCPU(BaseCPU):
175 type = 'MinorCPU'
176 cxx_header = "cpu/minor/cpu.hh"
177
178 @classmethod
179 def memory_mode(cls):
180 return 'timing'
181
182 @classmethod
183 def require_caches(cls):
184 return True
185
186 @classmethod
187 def support_take_over(cls):
188 return True
189
190 threadPolicy = Param.ThreadPolicy('RoundRobin',
191 "Thread scheduling policy")
188 fetch1FetchLimit = Param.Unsigned(1,
189 "Number of line fetches allowable in flight at once")
190 fetch1LineSnapWidth = Param.Unsigned(0,
191 "Fetch1 'line' fetch snap size in bytes"
192 " (0 means use system cache line size)")
193 fetch1LineWidth = Param.Unsigned(0,
194 "Fetch1 maximum fetch size in bytes (0 means use system cache"
195 " line size)")

--- 79 unchanged lines hidden ---
192 fetch1FetchLimit = Param.Unsigned(1,
193 "Number of line fetches allowable in flight at once")
194 fetch1LineSnapWidth = Param.Unsigned(0,
195 "Fetch1 'line' fetch snap size in bytes"
196 " (0 means use system cache line size)")
197 fetch1LineWidth = Param.Unsigned(0,
198 "Fetch1 maximum fetch size in bytes (0 means use system cache"
199 " line size)")

--- 79 unchanged lines hidden ---