Deleted Added
sdiff udiff text old ( 8795:0909f8ed7aa0 ) new ( 8796:a2ae5c378d0a )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

179 for (ThreadID tid = 0; tid < numThreads; ++tid) {
180 Event *event = new CountedExitEvent(cause, *counter);
181 comLoadEventQueue[tid]->schedule(event, p->max_loads_all_threads);
182 }
183 }
184
185 functionTracingEnabled = false;
186 if (p->function_trace) {
187 const string fname = csprintf("ftrace.%s", name());
188 functionTraceStream = simout.find(fname);
189 if (!functionTraceStream)
190 functionTraceStream = simout.create(fname);
191
192 currentFunctionStart = currentFunctionEnd = 0;
193 functionEntryTick = p->function_trace_start;
194
195 if (p->function_trace_start == 0) {
196 functionTracingEnabled = true;
197 } else {
198 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap;
199 Event *event = new wrap(this, true);

--- 273 unchanged lines hidden ---