base.cc (4284:c8800319ed0c) | base.cc (4471:4d86c4d096ad) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 165 unchanged lines hidden (view full) --- 174 if (p->functionTrace) { 175 functionTraceStream = simout.find(csprintf("ftrace.%s", name())); 176 currentFunctionStart = currentFunctionEnd = 0; 177 functionEntryTick = p->functionTraceStart; 178 179 if (p->functionTraceStart == 0) { 180 functionTracingEnabled = true; 181 } else { | 1/* 2 * Copyright (c) 2002-2005 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; --- 165 unchanged lines hidden (view full) --- 174 if (p->functionTrace) { 175 functionTraceStream = simout.find(csprintf("ftrace.%s", name())); 176 currentFunctionStart = currentFunctionEnd = 0; 177 functionEntryTick = p->functionTraceStart; 178 179 if (p->functionTraceStart == 0) { 180 functionTracingEnabled = true; 181 } else { |
182 Event *e = 183 new EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace>(this, 184 true); 185 e->schedule(p->functionTraceStart); | 182 new EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace>(this, 183 p->functionTraceStart, 184 true); |
186 } 187 } 188#if FULL_SYSTEM 189 profileEvent = NULL; 190 if (params->profile) 191 profileEvent = new ProfileEvent(this, params->profile); 192#endif 193} --- 270 unchanged lines hidden --- | 185 } 186 } 187#if FULL_SYSTEM 188 profileEvent = NULL; 189 if (params->profile) 190 profileEvent = new ProfileEvent(this, params->profile); 191#endif 192} --- 270 unchanged lines hidden --- |