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
128uint64_t
129rpns(ThreadContext *tc)
130{
131 return curTick / Clock::Int::ns;
132}
133
134void
135m5exit(ThreadContext *tc, Tick delay)
136{
137 Tick when = curTick + delay * Clock::Int::ns;
138 Event *event = new SimLoopExitEvent("m5_exit instruction encountered", 0);
139 mainEventQueue.schedule(event, when);
140}
141

--- 160 unchanged lines hidden ---