nativetrace.hh (8737:770ccf3af571) nativetrace.hh (10664:61a0b02aa800)
1/*
2 * Copyright (c) 2006-2009 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;

--- 42 unchanged lines hidden (view full) ---

51{
52 protected:
53 NativeTrace * parent;
54
55 public:
56 NativeTraceRecord(NativeTrace * _parent,
57 Tick _when, ThreadContext *_thread,
58 const StaticInstPtr _staticInst, TheISA::PCState _pc,
1/*
2 * Copyright (c) 2006-2009 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;

--- 42 unchanged lines hidden (view full) ---

51{
52 protected:
53 NativeTrace * parent;
54
55 public:
56 NativeTraceRecord(NativeTrace * _parent,
57 Tick _when, ThreadContext *_thread,
58 const StaticInstPtr _staticInst, TheISA::PCState _pc,
59 bool spec, const StaticInstPtr _macroStaticInst = NULL)
60 : ExeTracerRecord(_when, _thread, _staticInst, _pc, spec,
61 _macroStaticInst),
59 const StaticInstPtr _macroStaticInst = NULL)
60 : ExeTracerRecord(_when, _thread, _staticInst, _pc, _macroStaticInst),
62 parent(_parent)
63 {
64 }
65
66 void dump();
67};
68
69class NativeTrace : public ExeTracer

--- 8 unchanged lines hidden (view full) ---

78 NativeTrace(const Params *p);
79 virtual ~NativeTrace() {}
80
81 NativeTraceRecord *
82 getInstRecord(Tick when, ThreadContext *tc,
83 const StaticInstPtr staticInst, TheISA::PCState pc,
84 const StaticInstPtr macroStaticInst = NULL)
85 {
61 parent(_parent)
62 {
63 }
64
65 void dump();
66};
67
68class NativeTrace : public ExeTracer

--- 8 unchanged lines hidden (view full) ---

77 NativeTrace(const Params *p);
78 virtual ~NativeTrace() {}
79
80 NativeTraceRecord *
81 getInstRecord(Tick when, ThreadContext *tc,
82 const StaticInstPtr staticInst, TheISA::PCState pc,
83 const StaticInstPtr macroStaticInst = NULL)
84 {
86 if (tc->misspeculating())
87 return NULL;
88
89 return new NativeTraceRecord(this, when, tc,
85 return new NativeTraceRecord(this, when, tc,
90 staticInst, pc, tc->misspeculating(), macroStaticInst);
86 staticInst, pc, macroStaticInst);
91 }
92
93 template<class T>
94 bool
95 checkReg(const char * regName, T &val, T &realVal)
96 {
97 if(val != realVal)
98 {

--- 27 unchanged lines hidden ---
87 }
88
89 template<class T>
90 bool
91 checkReg(const char * regName, T &val, T &realVal)
92 {
93 if(val != realVal)
94 {

--- 27 unchanged lines hidden ---