main.py (4044:204fd77bae19) main.py (4046:ef34b290091e)
1# Copyright (c) 2005 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

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

263 # set stats options
264 objects.Statistics.text_file = options.stats_file
265
266 # set debugging options
267 for when in options.debug_break:
268 internal.debug.schedBreakCycle(int(when))
269
270 for flag in options.trace_flags:
1# Copyright (c) 2005 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

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

263 # set stats options
264 objects.Statistics.text_file = options.stats_file
265
266 # set debugging options
267 for when in options.debug_break:
268 internal.debug.schedBreakCycle(int(when))
269
270 for flag in options.trace_flags:
271 internal.trace.setFlag(flag)
271 internal.trace.set(flag)
272
273 if options.trace_start is not None:
274 internal.trace.enabled = False
275 def enable_trace():
276 internal.event.enabled = True
277 internal.event.create(enable_trace, options.trace_start)
278
272
273 if options.trace_start is not None:
274 internal.trace.enabled = False
275 def enable_trace():
276 internal.event.enabled = True
277 internal.event.create(enable_trace, options.trace_start)
278
279 #if options.trace_file is not None:
280 # internal.trace.file(options.trace_file)
279 internal.trace.output(options.trace_file)
281
282 for ignore in options.trace_ignore:
283 internal.trace.ignore(ignore)
284
285 # set execution trace options
286 objects.ExecutionTrace.speculative = options.speculative
287 objects.ExecutionTrace.print_cycle = options.print_cycle
288 objects.ExecutionTrace.pc_symbol = options.print_symbol

--- 45 unchanged lines hidden ---
280
281 for ignore in options.trace_ignore:
282 internal.trace.ignore(ignore)
283
284 # set execution trace options
285 objects.ExecutionTrace.speculative = options.speculative
286 objects.ExecutionTrace.print_cycle = options.print_cycle
287 objects.ExecutionTrace.pc_symbol = options.print_symbol

--- 45 unchanged lines hidden ---