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 --- 278 unchanged lines hidden (view full) --- 287# ---------------------- 288# Run the simulation 289# ---------------------- 290 291if options.timing or options.detailed: 292 root.system.mem_mode = 'timing' 293 294# instantiate configuration |
295m5.instantiate() |
296 297# simulate until program terminates 298if options.maxtick: 299 exit_event = m5.simulate(options.maxtick) 300else: 301 exit_event = m5.simulate(m5.MaxTick) 302 303print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() 304 |