inteltrace.hh (7811:a8fc35183c10) | inteltrace.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; --- 21 unchanged lines hidden (view full) --- 30 */ 31 32#ifndef __CPU_INTELTRACE_HH__ 33#define __CPU_INTELTRACE_HH__ 34 35#include "base/trace.hh" 36#include "base/types.hh" 37#include "cpu/static_inst.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; --- 21 unchanged lines hidden (view full) --- 30 */ 31 32#ifndef __CPU_INTELTRACE_HH__ 33#define __CPU_INTELTRACE_HH__ 34 35#include "base/trace.hh" 36#include "base/types.hh" 37#include "cpu/static_inst.hh" |
38#include "debug/ExecEnable.hh" 39#include "debug/ExecSpeculative.hh" |
|
38#include "params/IntelTrace.hh" 39#include "sim/insttracer.hh" 40 41class ThreadContext; 42 43namespace Trace { 44 45class IntelTraceRecord : public InstRecord --- 17 unchanged lines hidden (view full) --- 63 IntelTrace(const IntelTraceParams *p) : InstTracer(p) 64 {} 65 66 IntelTraceRecord * 67 getInstRecord(Tick when, ThreadContext *tc, 68 const StaticInstPtr staticInst, TheISA::PCState pc, 69 const StaticInstPtr macroStaticInst = NULL) 70 { | 40#include "params/IntelTrace.hh" 41#include "sim/insttracer.hh" 42 43class ThreadContext; 44 45namespace Trace { 46 47class IntelTraceRecord : public InstRecord --- 17 unchanged lines hidden (view full) --- 65 IntelTrace(const IntelTraceParams *p) : InstTracer(p) 66 {} 67 68 IntelTraceRecord * 69 getInstRecord(Tick when, ThreadContext *tc, 70 const StaticInstPtr staticInst, TheISA::PCState pc, 71 const StaticInstPtr macroStaticInst = NULL) 72 { |
71 if (!IsOn(ExecEnable)) | 73 if (!Debug::ExecEnable) |
72 return NULL; 73 74 if (!Trace::enabled) 75 return NULL; 76 | 74 return NULL; 75 76 if (!Trace::enabled) 77 return NULL; 78 |
77 if (!IsOn(ExecSpeculative) && tc->misspeculating()) | 79 if (!Debug::ExecSpeculative && tc->misspeculating()) |
78 return NULL; 79 80 return new IntelTraceRecord(when, tc, 81 staticInst, pc, tc->misspeculating(), macroStaticInst); 82 } 83}; 84 85} // namespace Trace 86 87#endif // __CPU_INTELTRACE_HH__ | 80 return NULL; 81 82 return new IntelTraceRecord(when, tc, 83 staticInst, pc, tc->misspeculating(), macroStaticInst); 84 } 85}; 86 87} // namespace Trace 88 89#endif // __CPU_INTELTRACE_HH__ |