Deleted Added
sdiff udiff text old ( 13408:f586d7fb4623 ) new ( 13731:67cd980cb20f )
full compact
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
68execfile(os.path.join(config_root, "common", "Options.py"))
69
70(options, args) = parser.parse_args()
71
72#
73# Set the default cache size and associativity to be very small to encourage
74# races between requests and writebacks.
75#
76options.l1d_size="256B"

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

96#
97# Currently ruby does not support atomic or uncacheable accesses
98#
99cpus = [ MemTest(max_loads = options.maxloads,
100 percent_functional = options.functional,
101 percent_uncacheable = 0,
102 progress_interval = options.progress,
103 suppress_func_warnings = options.suppress_func_warnings) \
104 for i in xrange(options.num_cpus) ]
105
106system = System(cpu = cpus,
107 clk_domain = SrcClockDomain(clock = options.sys_clock),
108 mem_ranges = [AddrRange(options.mem_size)])
109
110if options.num_dmas > 0:
111 dmas = [ MemTest(max_loads = options.maxloads,
112 percent_functional = 0,
113 percent_uncacheable = 0,
114 progress_interval = options.progress,
115 suppress_func_warnings =
116 not options.suppress_func_warnings) \
117 for i in xrange(options.num_dmas) ]
118 system.dma_devices = dmas
119else:
120 dmas = []
121
122dma_ports = []
123for (i, dma) in enumerate(dmas):
124 dma_ports.append(dma.test)
125Ruby.create_system(options, False, system, dma_ports = dma_ports)

--- 46 unchanged lines hidden ---