simulate.hh revision 11800
16502Snate@binkert.org/* 26502Snate@binkert.org * Copyright (c) 2006 The Regents of The University of Michigan 36502Snate@binkert.org * All rights reserved. 46502Snate@binkert.org * 56502Snate@binkert.org * Redistribution and use in source and binary forms, with or without 66502Snate@binkert.org * modification, are permitted provided that the following conditions are 76502Snate@binkert.org * met: redistributions of source code must retain the above copyright 86502Snate@binkert.org * notice, this list of conditions and the following disclaimer; 96502Snate@binkert.org * redistributions in binary form must reproduce the above copyright 106502Snate@binkert.org * notice, this list of conditions and the following disclaimer in the 116502Snate@binkert.org * documentation and/or other materials provided with the distribution; 126502Snate@binkert.org * neither the name of the copyright holders nor the names of its 136502Snate@binkert.org * contributors may be used to endorse or promote products derived from 146502Snate@binkert.org * this software without specific prior written permission. 156502Snate@binkert.org * 166502Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 176502Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 186502Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 196502Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 206502Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 216502Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 226502Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 236502Snate@binkert.org * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 246502Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 256502Snate@binkert.org * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 266502Snate@binkert.org * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 276651Snate@binkert.org * 286502Snate@binkert.org * Authors: Nathan Binkert 296502Snate@binkert.org * Steve Reinhardt 306502Snate@binkert.org */ 316502Snate@binkert.org 326502Snate@binkert.org#include "base/types.hh" 336502Snate@binkert.org 346502Snate@binkert.orgclass GlobalSimLoopExitEvent; 356502Snate@binkert.org 366502Snate@binkert.orgGlobalSimLoopExitEvent *simulate(Tick num_cycles = MaxTick); 376502Snate@binkert.orgextern GlobalSimLoopExitEvent *simulate_limit_event; 386502Snate@binkert.org