pseudo_inst.cc (5504:288b54c2fd8d) | pseudo_inst.cc (5505:90d6811d5ea6) |
---|---|
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; --- 110 unchanged lines hidden (view full) --- 119 120uint64_t 121quiesceTime(ThreadContext *tc) 122{ 123 return (tc->readLastActivate() - tc->readLastSuspend()) / Clock::Int::ns; 124} 125 126void | 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; --- 110 unchanged lines hidden (view full) --- 119 120uint64_t 121quiesceTime(ThreadContext *tc) 122{ 123 return (tc->readLastActivate() - tc->readLastSuspend()) / Clock::Int::ns; 124} 125 126void |
127m5exit_old(ThreadContext *tc) 128{ 129 exitSimLoop("m5_exit_old instruction encountered"); 130} 131 132void | |
133m5exit(ThreadContext *tc, Tick delay) 134{ 135 Tick when = curTick + delay * Clock::Int::ns; 136 schedExitSimLoop("m5_exit instruction encountered", when); 137} 138 139void 140loadsymbol(ThreadContext *tc) --- 77 unchanged lines hidden (view full) --- 218 std::string symbol(symb); 219 220 DPRINTF(Loader, "Loaded symbol: %s @ %#llx\n", symbol, addr); 221 222 tc->getSystemPtr()->kernelSymtab->insert(addr,symbol); 223} 224 225void | 127m5exit(ThreadContext *tc, Tick delay) 128{ 129 Tick when = curTick + delay * Clock::Int::ns; 130 schedExitSimLoop("m5_exit instruction encountered", when); 131} 132 133void 134loadsymbol(ThreadContext *tc) --- 77 unchanged lines hidden (view full) --- 212 std::string symbol(symb); 213 214 DPRINTF(Loader, "Loaded symbol: %s @ %#llx\n", symbol, addr); 215 216 tc->getSystemPtr()->kernelSymtab->insert(addr,symbol); 217} 218 219void |
226anBegin(ThreadContext *tc, uint64_t cur) 227{ 228 Annotate::annotations.add(tc->getSystemPtr(), 0, cur >> 32, cur & 229 0xFFFFFFFF, 0,0); 230} 231 232void 233anWait(ThreadContext *tc, uint64_t cur, uint64_t wait) 234{ 235 Annotate::annotations.add(tc->getSystemPtr(), 0, cur >> 32, cur & 236 0xFFFFFFFF, wait >> 32, wait & 0xFFFFFFFF); 237} 238 239 240void | |
241dumpresetstats(ThreadContext *tc, Tick delay, Tick period) 242{ 243 if (!tc->getCpuPtr()->params->do_statistics_insts) 244 return; 245 246 247 Tick when = curTick + delay * Clock::Int::ns; 248 Tick repeat = period * Clock::Int::ns; --- 64 unchanged lines hidden --- | 220dumpresetstats(ThreadContext *tc, Tick delay, Tick period) 221{ 222 if (!tc->getCpuPtr()->params->do_statistics_insts) 223 return; 224 225 226 Tick when = curTick + delay * Clock::Int::ns; 227 Tick repeat = period * Clock::Int::ns; --- 64 unchanged lines hidden --- |