pseudo_inst.cc (5780:50c9d48de3ca) pseudo_inst.cc (5808:baf5d5c96c68)
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;

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

133
134uint64_t
135rpns(ThreadContext *tc)
136{
137 return curTick / Clock::Int::ns;
138}
139
140void
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;

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

133
134uint64_t
135rpns(ThreadContext *tc)
136{
137 return curTick / Clock::Int::ns;
138}
139
140void
141wakeCPU(ThreadContext *tc, uint64_t cpuid)
142{
143 System *sys = tc->getSystemPtr();
144 ThreadContext *other_tc = sys->threadContexts[cpuid];
145 if (other_tc->status() == ThreadContext::Suspended)
146 other_tc->activate();
147}
148
149void
141m5exit(ThreadContext *tc, Tick delay)
142{
143 Tick when = curTick + delay * Clock::Int::ns;
144 Event *event = new SimLoopExitEvent("m5_exit instruction encountered", 0);
145 mainEventQueue.schedule(event, when);
146}
147
148#if FULL_SYSTEM

--- 168 unchanged lines hidden ---
150m5exit(ThreadContext *tc, Tick delay)
151{
152 Tick when = curTick + delay * Clock::Int::ns;
153 Event *event = new SimLoopExitEvent("m5_exit instruction encountered", 0);
154 mainEventQueue.schedule(event, when);
155}
156
157#if FULL_SYSTEM

--- 168 unchanged lines hidden ---