inteltrace.hh (10664:61a0b02aa800) | inteltrace.hh (11153:20bbfe5b2b86) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 57 unchanged lines hidden (view full) --- 66 IntelTraceRecord * 67 getInstRecord(Tick when, ThreadContext *tc, 68 const StaticInstPtr staticInst, TheISA::PCState pc, 69 const StaticInstPtr macroStaticInst = NULL) 70 { 71 if (!Debug::ExecEnable) 72 return NULL; 73 | 1/* 2 * Copyright (c) 2001-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; --- 57 unchanged lines hidden (view full) --- 66 IntelTraceRecord * 67 getInstRecord(Tick when, ThreadContext *tc, 68 const StaticInstPtr staticInst, TheISA::PCState pc, 69 const StaticInstPtr macroStaticInst = NULL) 70 { 71 if (!Debug::ExecEnable) 72 return NULL; 73 |
74 if (!Trace::enabled) 75 return NULL; 76 | |
77 return new IntelTraceRecord(when, tc, staticInst, pc, macroStaticInst); 78 } 79}; 80 81} // namespace Trace 82 83#endif // __CPU_INTELTRACE_HH__ | 74 return new IntelTraceRecord(when, tc, staticInst, pc, macroStaticInst); 75 } 76}; 77 78} // namespace Trace 79 80#endif // __CPU_INTELTRACE_HH__ |