memtest-ruby.py (8839:eeb293859255) | memtest-ruby.py (8920:99083b5b7ed4) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2010 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; --- 27 unchanged lines hidden (view full) --- 36# Get paths we might need 37config_path = os.path.dirname(os.path.abspath(__file__)) 38config_root = os.path.dirname(config_path) 39m5_root = os.path.dirname(config_root) 40addToPath(config_root+'/configs/common') 41addToPath(config_root+'/configs/ruby') 42 43import Ruby | 1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# Copyright (c) 2010 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; --- 27 unchanged lines hidden (view full) --- 36# Get paths we might need 37config_path = os.path.dirname(os.path.abspath(__file__)) 38config_root = os.path.dirname(config_path) 39m5_root = os.path.dirname(config_root) 40addToPath(config_root+'/configs/common') 41addToPath(config_root+'/configs/ruby') 42 43import Ruby |
44import Options |
|
44 45parser = optparse.OptionParser() | 45 46parser = optparse.OptionParser() |
47Options.addCommonOptions(parser) |
|
46 | 48 |
47# | |
48# Add the ruby specific and protocol specific options | 49# Add the ruby specific and protocol specific options |
49# | |
50Ruby.define_options(parser) 51 | 50Ruby.define_options(parser) 51 |
52execfile(os.path.join(config_root, "configs/common", "Options.py")) 53 | |
54(options, args) = parser.parse_args() 55 56# 57# Set the default cache size and associativity to be very small to encourage 58# races between requests and writebacks. 59# 60options.l1d_size="256B" 61options.l1i_size="256B" --- 56 unchanged lines hidden --- | 52(options, args) = parser.parse_args() 53 54# 55# Set the default cache size and associativity to be very small to encourage 56# races between requests and writebacks. 57# 58options.l1d_size="256B" 59options.l1i_size="256B" --- 56 unchanged lines hidden --- |