nativetrace.cc (5038:c996bb7f1a6d) | nativetrace.cc (5049:16a0724434b8) |
---|---|
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; --- 70 unchanged lines hidden (view full) --- 79{ 80 if(!checkR11) 81 checkR11 = (mVal != oldR11Val || nVal != oldRealR11Val); 82 if(checkR11) 83 return checkReg(name, mVal, nVal); 84 return true; 85} 86 | 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; --- 70 unchanged lines hidden (view full) --- 79{ 80 if(!checkR11) 81 checkR11 = (mVal != oldR11Val || nVal != oldRealR11Val); 82 if(checkR11) 83 return checkReg(name, mVal, nVal); 84 return true; 85} 86 |
87bool 88NativeTrace::checkXMM(int num, uint64_t mXmmBuf[], uint64_t nXmmBuf[]) 89{ 90 if (mXmmBuf[num * 2] != nXmmBuf[num * 2] || 91 mXmmBuf[num * 2 + 1] != nXmmBuf[num * 2 + 1]) { 92 DPRINTFN("Register xmm%d should be 0x%016x%016x but is 0x%016x%016x.\n", 93 num, nXmmBuf[num * 2 + 1], nXmmBuf[num * 2], 94 mXmmBuf[num * 2 + 1], mXmmBuf[num * 2]); 95 return false; 96 } 97 return true; 98} 99 |
|
87void 88Trace::NativeTraceRecord::dump() 89{ 90 //Don't print what happens for each micro-op, just print out 91 //once at the last op, and for regular instructions. 92 if(!staticInst->isMicroop() || staticInst->isLastMicroop()) 93 parent->check(thread, staticInst->isSyscall()); 94} --- 27 unchanged lines hidden (view full) --- 122 checkReg("r9", mState.r9, nState.r9); 123 checkReg("r10", mState.r10, nState.r10); 124 checkR11Reg("r11", mState.r11, nState.r11); 125 checkReg("r12", mState.r12, nState.r12); 126 checkReg("r13", mState.r13, nState.r13); 127 checkReg("r14", mState.r14, nState.r14); 128 checkReg("r15", mState.r15, nState.r15); 129 checkReg("rip", mState.rip, nState.rip); | 100void 101Trace::NativeTraceRecord::dump() 102{ 103 //Don't print what happens for each micro-op, just print out 104 //once at the last op, and for regular instructions. 105 if(!staticInst->isMicroop() || staticInst->isLastMicroop()) 106 parent->check(thread, staticInst->isSyscall()); 107} --- 27 unchanged lines hidden (view full) --- 135 checkReg("r9", mState.r9, nState.r9); 136 checkReg("r10", mState.r10, nState.r10); 137 checkR11Reg("r11", mState.r11, nState.r11); 138 checkReg("r12", mState.r12, nState.r12); 139 checkReg("r13", mState.r13, nState.r13); 140 checkReg("r14", mState.r14, nState.r14); 141 checkReg("r15", mState.r15, nState.r15); 142 checkReg("rip", mState.rip, nState.rip); |
143 checkXMM(0, mState.xmm, nState.xmm); 144 checkXMM(1, mState.xmm, nState.xmm); 145 checkXMM(2, mState.xmm, nState.xmm); 146 checkXMM(3, mState.xmm, nState.xmm); 147 checkXMM(4, mState.xmm, nState.xmm); 148 checkXMM(5, mState.xmm, nState.xmm); 149 checkXMM(6, mState.xmm, nState.xmm); 150 checkXMM(7, mState.xmm, nState.xmm); 151 checkXMM(8, mState.xmm, nState.xmm); 152 checkXMM(9, mState.xmm, nState.xmm); 153 checkXMM(10, mState.xmm, nState.xmm); 154 checkXMM(11, mState.xmm, nState.xmm); 155 checkXMM(12, mState.xmm, nState.xmm); 156 checkXMM(13, mState.xmm, nState.xmm); 157 checkXMM(14, mState.xmm, nState.xmm); 158 checkXMM(15, mState.xmm, nState.xmm); |
|
130#if THE_ISA == SPARC_ISA 131 /*for(int f = 0; f <= 62; f+=2) 132 { 133 uint64_t regVal; 134 int res = read(fd, ®Val, sizeof(regVal)); 135 if(res < 0) 136 panic("First read call failed! %s\n", strerror(errno)); 137 regVal = TheISA::gtoh(regVal); --- 54 unchanged lines hidden --- | 159#if THE_ISA == SPARC_ISA 160 /*for(int f = 0; f <= 62; f+=2) 161 { 162 uint64_t regVal; 163 int res = read(fd, ®Val, sizeof(regVal)); 164 if(res < 0) 165 panic("First read call failed! %s\n", strerror(errno)); 166 regVal = TheISA::gtoh(regVal); --- 54 unchanged lines hidden --- |