Deleted Added
sdiff udiff text old ( 5606:6da7a58b0bc8 ) new ( 5741:323dac95e72c )
full compact
1/*
2 * Copyright (c) 2003-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

120}
121
122uint64_t
123quiesceTime(ThreadContext *tc)
124{
125 return (tc->readLastActivate() - tc->readLastSuspend()) / Clock::Int::ns;
126}
127
128void
129m5exit(ThreadContext *tc, Tick delay)
130{
131 Tick when = curTick + delay * Clock::Int::ns;
132 Event *event = new SimLoopExitEvent("m5_exit instruction encountered", 0);
133 mainEventQueue.schedule(event, when);
134}
135

--- 160 unchanged lines hidden ---