base.cc (8779:2a590c51adb1) | base.cc (8793:5f25086326ac) |
---|---|
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 --- 185 unchanged lines hidden (view full) --- 194 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap; 195 Event *event = new wrap(this, true); 196 schedule(event, p->function_trace_start); 197 } 198 } 199 interrupts->setCPU(this); 200 201 if (FullSystem) { | 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 --- 185 unchanged lines hidden (view full) --- 194 typedef EventWrapper<BaseCPU, &BaseCPU::enableFunctionTrace> wrap; 195 Event *event = new wrap(this, true); 196 schedule(event, p->function_trace_start); 197 } 198 } 199 interrupts->setCPU(this); 200 201 if (FullSystem) { |
202#if FULL_SYSTEM | |
203 profileEvent = NULL; 204 if (params()->profile) 205 profileEvent = new ProfileEvent(this, params()->profile); | 202 profileEvent = NULL; 203 if (params()->profile) 204 profileEvent = new ProfileEvent(this, params()->profile); |
206#endif | |
207 } 208 tracer = params()->tracer; 209} 210 211void 212BaseCPU::enableFunctionTrace() 213{ 214 functionTracingEnabled = true; --- 257 unchanged lines hidden --- | 205 } 206 tracer = params()->tracer; 207} 208 209void 210BaseCPU::enableFunctionTrace() 211{ 212 functionTracingEnabled = true; --- 257 unchanged lines hidden --- |