simple-timing-ruby.py (8876:44f8e7bb7fdf) | simple-timing-ruby.py (8920:99083b5b7ed4) |
---|---|
1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 21 unchanged lines hidden (view full) --- 30from m5.objects import * 31from m5.defines import buildEnv 32from m5.util import addToPath 33import os, optparse, sys 34 35# Get paths we might need 36config_path = os.path.dirname(os.path.abspath(__file__)) 37config_root = os.path.dirname(config_path) | 1# Copyright (c) 2006-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 21 unchanged lines hidden (view full) --- 30from m5.objects import * 31from m5.defines import buildEnv 32from m5.util import addToPath 33import os, optparse, sys 34 35# Get paths we might need 36config_path = os.path.dirname(os.path.abspath(__file__)) 37config_root = os.path.dirname(config_path) |
38m5_root = os.path.dirname(config_root) | |
39addToPath(config_root+'/configs/common') 40addToPath(config_root+'/configs/ruby') 41 42import Ruby | 38addToPath(config_root+'/configs/common') 39addToPath(config_root+'/configs/ruby') 40 41import Ruby |
42import Options |
|
43 44parser = optparse.OptionParser() | 43 44parser = optparse.OptionParser() |
45Options.addCommonOptions(parser) |
|
45 | 46 |
46# | |
47# Add the ruby specific and protocol specific options | 47# Add the ruby specific and protocol specific options |
48# | |
49Ruby.define_options(parser) 50 | 48Ruby.define_options(parser) 49 |
51execfile(os.path.join(config_root, "configs/common", "Options.py")) 52 | |
53(options, args) = parser.parse_args() 54 55# 56# Set the default cache size and associativity to be very small to encourage 57# races between requests and writebacks. 58# 59options.l1d_size="256B" 60options.l1i_size="256B" --- 35 unchanged lines hidden --- | 50(options, args) = parser.parse_args() 51 52# 53# Set the default cache size and associativity to be very small to encourage 54# races between requests and writebacks. 55# 56options.l1d_size="256B" 57options.l1i_size="256B" --- 35 unchanged lines hidden --- |