diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-08-20 11:46:13 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-08-20 11:46:13 -0700 |
commit | a2dcbde1657660cef91e8a83ab00f3752a034c64 (patch) | |
tree | 6934fe901dd8a0d01bfa7b6a98c66179c4f0d5a5 /configs/ruby/Ruby.py | |
parent | fb2e0f56ef93e638214137130dc83ecbd645bcdf (diff) | |
download | gem5-a2dcbde1657660cef91e8a83ab00f3752a034c64.tar.xz |
config: added cmd options to control ruby debug
Diffstat (limited to 'configs/ruby/Ruby.py')
-rw-r--r-- | configs/ruby/Ruby.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py index 2e46dd352..ec1f4edf6 100644 --- a/configs/ruby/Ruby.py +++ b/configs/ruby/Ruby.py @@ -48,6 +48,10 @@ def define_options(parser): parser.add_option("--use-map", action="store_true", default=False) parser.add_option("--map-levels", type="int", default=4) + # ruby debug cmd line options + parser.add_option("--ruby-debug", action="store_true", default=False) + parser.add_option("--ruby-debug-cycle", type="int", default=1) + protocol = buildEnv['PROTOCOL'] exec "import %s" % protocol eval("%s.define_options(parser)" % protocol) @@ -103,7 +107,8 @@ def create_system(options, system, piobus = None, dma_devices = []): tracer = RubyTracer(), debug = RubyDebug(filter_string = 'none', verbosity_string = 'none', - protocol_trace = False), + protocol_trace = options.ruby_debug, + start_time = options.ruby_debug_cycle), mem_size = total_mem_size) ruby.cpu_ruby_ports = cpu_sequencers |