exetrace.hh (10417:710ee116eb68) | exetrace.hh (10664:61a0b02aa800) |
---|---|
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; --- 23 unchanged lines hidden (view full) --- 32#ifndef __CPU_EXETRACE_HH__ 33#define __CPU_EXETRACE_HH__ 34 35#include "base/trace.hh" 36#include "base/types.hh" 37#include "cpu/static_inst.hh" 38#include "cpu/thread_context.hh" 39#include "debug/ExecEnable.hh" | 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; --- 23 unchanged lines hidden (view full) --- 32#ifndef __CPU_EXETRACE_HH__ 33#define __CPU_EXETRACE_HH__ 34 35#include "base/trace.hh" 36#include "base/types.hh" 37#include "cpu/static_inst.hh" 38#include "cpu/thread_context.hh" 39#include "debug/ExecEnable.hh" |
40#include "debug/ExecSpeculative.hh" | |
41#include "params/ExeTracer.hh" 42#include "sim/insttracer.hh" 43 44class ThreadContext; 45 46namespace Trace { 47 48class ExeTracerRecord : public InstRecord 49{ 50 public: 51 ExeTracerRecord(Tick _when, ThreadContext *_thread, 52 const StaticInstPtr _staticInst, TheISA::PCState _pc, | 40#include "params/ExeTracer.hh" 41#include "sim/insttracer.hh" 42 43class ThreadContext; 44 45namespace Trace { 46 47class ExeTracerRecord : public InstRecord 48{ 49 public: 50 ExeTracerRecord(Tick _when, ThreadContext *_thread, 51 const StaticInstPtr _staticInst, TheISA::PCState _pc, |
53 bool spec, const StaticInstPtr _macroStaticInst = NULL) 54 : InstRecord(_when, _thread, _staticInst, _pc, spec, 55 _macroStaticInst) | 52 const StaticInstPtr _macroStaticInst = NULL) 53 : InstRecord(_when, _thread, _staticInst, _pc, _macroStaticInst) |
56 { 57 } 58 59 void traceInst(const StaticInstPtr &inst, bool ran); 60 61 void dump(); 62 virtual void dumpTicks(std::ostream &outs); 63}; --- 11 unchanged lines hidden (view full) --- 75 const StaticInstPtr macroStaticInst = NULL) 76 { 77 if (!Debug::ExecEnable) 78 return NULL; 79 80 if (!Trace::enabled) 81 return NULL; 82 | 54 { 55 } 56 57 void traceInst(const StaticInstPtr &inst, bool ran); 58 59 void dump(); 60 virtual void dumpTicks(std::ostream &outs); 61}; --- 11 unchanged lines hidden (view full) --- 73 const StaticInstPtr macroStaticInst = NULL) 74 { 75 if (!Debug::ExecEnable) 76 return NULL; 77 78 if (!Trace::enabled) 79 return NULL; 80 |
83 if (!Debug::ExecSpeculative && tc->misspeculating()) 84 return NULL; 85 | |
86 return new ExeTracerRecord(when, tc, | 81 return new ExeTracerRecord(when, tc, |
87 staticInst, pc, tc->misspeculating(), macroStaticInst); | 82 staticInst, pc, macroStaticInst); |
88 } 89}; 90 91} // namespace Trace 92 93#endif // __CPU_EXETRACE_HH__ | 83 } 84}; 85 86} // namespace Trace 87 88#endif // __CPU_EXETRACE_HH__ |