pseudo_inst.cc (7819:afe8476ee9e9) pseudo_inst.cc (7822:fc475ac7d2a4)
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;

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

231{
232 if (!tc->getCpuPtr()->params()->do_statistics_insts)
233 return;
234
235
236 Tick when = curTick + delay * SimClock::Int::ns;
237 Tick repeat = period * SimClock::Int::ns;
238
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;

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

231{
232 if (!tc->getCpuPtr()->params()->do_statistics_insts)
233 return;
234
235
236 Tick when = curTick + delay * SimClock::Int::ns;
237 Tick repeat = period * SimClock::Int::ns;
238
239 Stats::StatEvent(false, true, when, repeat);
239 Stats::schedStatEvent(false, true, when, repeat);
240}
241
242void
243dumpstats(ThreadContext *tc, Tick delay, Tick period)
244{
245 if (!tc->getCpuPtr()->params()->do_statistics_insts)
246 return;
247
248
249 Tick when = curTick + delay * SimClock::Int::ns;
250 Tick repeat = period * SimClock::Int::ns;
251
240}
241
242void
243dumpstats(ThreadContext *tc, Tick delay, Tick period)
244{
245 if (!tc->getCpuPtr()->params()->do_statistics_insts)
246 return;
247
248
249 Tick when = curTick + delay * SimClock::Int::ns;
250 Tick repeat = period * SimClock::Int::ns;
251
252 Stats::StatEvent(true, false, when, repeat);
252 Stats::schedStatEvent(true, false, when, repeat);
253}
254
255void
256dumpresetstats(ThreadContext *tc, Tick delay, Tick period)
257{
258 if (!tc->getCpuPtr()->params()->do_statistics_insts)
259 return;
260
261
262 Tick when = curTick + delay * SimClock::Int::ns;
263 Tick repeat = period * SimClock::Int::ns;
264
253}
254
255void
256dumpresetstats(ThreadContext *tc, Tick delay, Tick period)
257{
258 if (!tc->getCpuPtr()->params()->do_statistics_insts)
259 return;
260
261
262 Tick when = curTick + delay * SimClock::Int::ns;
263 Tick repeat = period * SimClock::Int::ns;
264
265 Stats::StatEvent(true, true, when, repeat);
265 Stats::schedStatEvent(true, true, when, repeat);
266}
267
268void
269m5checkpoint(ThreadContext *tc, Tick delay, Tick period)
270{
271 if (!tc->getCpuPtr()->params()->do_checkpoint_insts)
272 return;
273

--- 58 unchanged lines hidden ---
266}
267
268void
269m5checkpoint(ThreadContext *tc, Tick delay, Tick period)
270{
271 if (!tc->getCpuPtr()->params()->do_checkpoint_insts)
272 return;
273

--- 58 unchanged lines hidden ---