本文整理汇总了Python中CacheConfig.new_config_cache方法的典型用法代码示例。如果您正苦于以下问题:Python CacheConfig.new_config_cache方法的具体用法?Python CacheConfig.new_config_cache怎么用?Python CacheConfig.new_config_cache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CacheConfig
的用法示例。
在下文中一共展示了CacheConfig.new_config_cache方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SysConfig
# 需要导入模块: import CacheConfig [as 别名]
# 或者: from CacheConfig import new_config_cache [as 别名]
rsc = num_rsc
TestCPUClass.issueWidth = rsc # Default: 8
TestCPUClass.fetchWidth = rsc # Default: 8
TestCPUClass.decodeWidth = rsc # Default: 8
TestCPUClass.dispatchWidth = rsc # Default: 8
TestCPUClass.renameWidth = rsc # Default: 8
TestCPUClass.issueWidth = rsc # Default: 8
TestCPUClass.commitWidth = rsc # Default: 8
TestCPUClass.wbWidth = rsc # Default: 8
TestCPUClass.RASSize = rsc * 2 # Default: 16
TestCPUClass.LQEntries = rsc * 4 # Default: 32
TestCPUClass.SQEntries = rsc * 4 # Default: 32
TestCPUClass.numIQEntries = rsc * 8 # Default: 64
TestCPUClass.numROBEntries = rsc * 24 # Default: 192
CacheConfig.new_config_cache(options, test_sys, num_bce, num_rsc)
if options.caches or options.l2cache:
if bm[0]:
mem_size = bm[0].mem()
else:
mem_size = SysConfig().mem()
# For x86, we need to poke a hole for interrupt messages to get back to the
# CPU. These use a portion of the physical address space which has a
# non-zero prefix in the top nibble. Normal memory accesses have a 0
# prefix.
if buildEnv['TARGET_ISA'] == 'x86':
test_sys.bridge.filter_ranges_a=[AddrRange(0, Addr.max >> 4)]
else:
test_sys.bridge.filter_ranges_a=[AddrRange(0, Addr.max)]
test_sys.bridge.filter_ranges_b=[AddrRange(mem_size)]