arch,sim: Convert clone to GuestABI and define a cloneBackwardsFunc.
[gem5.git] / src / sim / debug.cc
index dd504778cdc9de15ca8dd80fd94b27c70a37861a..bf46a51b26a270e4c6fa5dcb20584ec255fc4b6c 100644 (file)
  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Nathan Binkert
- *          Steve Reinhardt
  */
 
+#include "sim/debug.hh"
+
 #include <string>
 #include <vector>
 
 #include "base/debug.hh"
-#include "sim/debug.hh"
+#include "cpu/pc_event.hh"
 #include "sim/eventq_impl.hh"
 #include "sim/global_event.hh"
 #include "sim/sim_events.hh"
 #include "sim/sim_exit.hh"
+#include "sim/system.hh"
 
 using namespace std;
 
@@ -87,6 +87,12 @@ schedBreak(Tick when)
     warn("need to stop all queues");
 }
 
+void
+schedRelBreak(Tick delta)
+{
+    schedBreak(curTick() + delta);
+}
+
 ///
 /// Function to cause the simulator to take a checkpoint from the debugger
 ///