1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2009 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 51 unchanged lines hidden (view full) --- 60parser.add_option("--suppress-func-warnings", action="store_true", 61 help="suppress warnings when functional accesses fail") 62 63# 64# Add the ruby specific and protocol specific options 65# 66Ruby.define_options(parser) 67 |
68exec(compile( \ 69 open(os.path.join(config_root, "common", "Options.py")).read(), \ 70 os.path.join(config_root, "common", "Options.py"), 'exec')) |
71 72(options, args) = parser.parse_args() 73 74# 75# Set the default cache size and associativity to be very small to encourage 76# races between requests and writebacks. 77# 78options.l1d_size="256B" --- 19 unchanged lines hidden (view full) --- 98# 99# Currently ruby does not support atomic or uncacheable accesses 100# 101cpus = [ MemTest(max_loads = options.maxloads, 102 percent_functional = options.functional, 103 percent_uncacheable = 0, 104 progress_interval = options.progress, 105 suppress_func_warnings = options.suppress_func_warnings) \ |
106 for i in range(options.num_cpus) ] |
107 108system = System(cpu = cpus, 109 clk_domain = SrcClockDomain(clock = options.sys_clock), 110 mem_ranges = [AddrRange(options.mem_size)]) 111 112if options.num_dmas > 0: 113 dmas = [ MemTest(max_loads = options.maxloads, 114 percent_functional = 0, 115 percent_uncacheable = 0, 116 progress_interval = options.progress, 117 suppress_func_warnings = 118 not options.suppress_func_warnings) \ |
119 for i in range(options.num_dmas) ] |
120 system.dma_devices = dmas 121else: 122 dmas = [] 123 124dma_ports = [] 125for (i, dma) in enumerate(dmas): 126 dma_ports.append(dma.test) 127Ruby.create_system(options, False, system, dma_ports = dma_ports) --- 46 unchanged lines hidden --- |