exetrace.hh (7811:a8fc35183c10) | exetrace.hh (8232:b28d06a175be) |
---|---|
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; --- 22 unchanged lines hidden (view full) --- 31 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" | 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; --- 22 unchanged lines hidden (view full) --- 31 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" |
|
39#include "params/ExeTracer.hh" 40#include "sim/insttracer.hh" 41 42class ThreadContext; 43 44namespace Trace { 45 46class ExeTracerRecord : public InstRecord --- 20 unchanged lines hidden (view full) --- 67 ExeTracer(const Params *params) : InstTracer(params) 68 {} 69 70 InstRecord * 71 getInstRecord(Tick when, ThreadContext *tc, 72 const StaticInstPtr staticInst, TheISA::PCState pc, 73 const StaticInstPtr macroStaticInst = NULL) 74 { | 41#include "params/ExeTracer.hh" 42#include "sim/insttracer.hh" 43 44class ThreadContext; 45 46namespace Trace { 47 48class ExeTracerRecord : public InstRecord --- 20 unchanged lines hidden (view full) --- 69 ExeTracer(const Params *params) : InstTracer(params) 70 {} 71 72 InstRecord * 73 getInstRecord(Tick when, ThreadContext *tc, 74 const StaticInstPtr staticInst, TheISA::PCState pc, 75 const StaticInstPtr macroStaticInst = NULL) 76 { |
75 if (!IsOn(ExecEnable)) | 77 if (!Debug::ExecEnable) |
76 return NULL; 77 78 if (!Trace::enabled) 79 return NULL; 80 | 78 return NULL; 79 80 if (!Trace::enabled) 81 return NULL; 82 |
81 if (!IsOn(ExecSpeculative) && tc->misspeculating()) | 83 if (!Debug::ExecSpeculative && tc->misspeculating()) |
82 return NULL; 83 84 return new ExeTracerRecord(when, tc, 85 staticInst, pc, tc->misspeculating(), macroStaticInst); 86 } 87}; 88 89} // namespace Trace 90 91#endif // __CPU_EXETRACE_HH__ | 84 return NULL; 85 86 return new ExeTracerRecord(when, tc, 87 staticInst, pc, tc->misspeculating(), macroStaticInst); 88 } 89}; 90 91} // namespace Trace 92 93#endif // __CPU_EXETRACE_HH__ |