Deleted Added
sdiff udiff text old ( 6398:7a94cba72e02 ) new ( 6409:6eaa041d043e )
full compact
1/*
2 * Copyright (c) 2006 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;

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

81}
82
83void
84Trace::ArmNativeTrace::check(NativeTraceRecord *record)
85{
86 nState.update(this);
87 mState.update(record->getThread());
88
89 // Regular int regs
90 for (int i = 0; i < STATE_NUMVALS; i++) {
91 if (nState.changed[i] || mState.changed[i]) {
92 const char *vergence = " ";
93 if (mState.oldState[i] == nState.oldState[i] &&
94 mState.newState[i] != nState.newState[i]) {
95 vergence = "<>";
96 } else if (mState.oldState[i] != nState.oldState[i] &&
97 mState.newState[i] == nState.newState[i]) {
98 vergence = "><";
99 }
100 if (!nState.changed[i]) {
101 DPRINTF(ExecRegDelta, "%s [%5s] "\
102 "Native: %#010x "\
103 "M5: %#010x => %#010x\n",
104 vergence, regNames[i],
105 nState.newState[i],
106 mState.oldState[i], mState.newState[i]);
107 } else if (!mState.changed[i]) {
108 DPRINTF(ExecRegDelta, "%s [%5s] "\
109 "Native: %#010x => %#010x "\
110 "M5: %#010x \n",
111 vergence, regNames[i],
112 nState.oldState[i], nState.newState[i],
113 mState.newState[i]);
114 } else if (mState.oldState[i] != nState.oldState[i] ||
115 mState.newState[i] != nState.newState[i]) {
116 DPRINTF(ExecRegDelta, "%s [%5s] "\
117 "Native: %#010x => %#010x "\
118 "M5: %#010x => %#010x\n",
119 vergence, regNames[i],
120 nState.oldState[i], nState.newState[i],
121 mState.oldState[i], mState.newState[i]);
122 }
123 }
124 }
125}
126
127} /* namespace Trace */
128
129////////////////////////////////////////////////////////////////////////
130//
131// ExeTracer Simulation Object
132//
133Trace::ArmNativeTrace *
134ArmNativeTraceParams::create()
135{
136 return new Trace::ArmNativeTrace(this);
137};