Legion actually writes to tl-1 in the data structure, so we need to compare correctly
--HG-- extra : convert_revision : 60fef1bd5dc03d7b107150dba922dd4a3f51626f
This commit is contained in:
parent
92c5a5c8cb
commit
153e02a435
1 changed files with 10 additions and 10 deletions
|
@ -338,19 +338,19 @@ Trace::InstRecord::dump(ostream &outs)
|
||||||
for (int i = 1; i <= MaxTL; i++) {
|
for (int i = 1; i <= MaxTL; i++) {
|
||||||
thread->setMiscReg(MISCREG_TL, i);
|
thread->setMiscReg(MISCREG_TL, i);
|
||||||
if (thread->readMiscReg(MISCREG_TPC) !=
|
if (thread->readMiscReg(MISCREG_TPC) !=
|
||||||
shared_data->tpc[i])
|
shared_data->tpc[i-1])
|
||||||
diffTpc = true;
|
diffTpc = true;
|
||||||
if (thread->readMiscReg(MISCREG_TNPC) !=
|
if (thread->readMiscReg(MISCREG_TNPC) !=
|
||||||
shared_data->tnpc[i])
|
shared_data->tnpc[i-1])
|
||||||
diffTnpc = true;
|
diffTnpc = true;
|
||||||
if (thread->readMiscReg(MISCREG_TSTATE) !=
|
if (thread->readMiscReg(MISCREG_TSTATE) !=
|
||||||
shared_data->tstate[i])
|
shared_data->tstate[i-1])
|
||||||
diffTstate = true;
|
diffTstate = true;
|
||||||
if (thread->readMiscReg(MISCREG_TT) !=
|
if (thread->readMiscReg(MISCREG_TT) !=
|
||||||
shared_data->tt[i])
|
shared_data->tt[i-1])
|
||||||
diffTt = true;
|
diffTt = true;
|
||||||
if (thread->readMiscReg(MISCREG_HTSTATE) !=
|
if (thread->readMiscReg(MISCREG_HTSTATE) !=
|
||||||
shared_data->htstate[i])
|
shared_data->htstate[i-1])
|
||||||
diffHtstate = true;
|
diffHtstate = true;
|
||||||
}
|
}
|
||||||
thread->setMiscReg(MISCREG_TL, oldTl);
|
thread->setMiscReg(MISCREG_TL, oldTl);
|
||||||
|
@ -527,19 +527,19 @@ Trace::InstRecord::dump(ostream &outs)
|
||||||
thread->setMiscReg(MISCREG_TL, i);
|
thread->setMiscReg(MISCREG_TL, i);
|
||||||
printRegPair(outs, "Tpc",
|
printRegPair(outs, "Tpc",
|
||||||
thread->readMiscReg(MISCREG_TPC),
|
thread->readMiscReg(MISCREG_TPC),
|
||||||
shared_data->tpc[i]);
|
shared_data->tpc[i-1]);
|
||||||
printRegPair(outs, "Tnpc",
|
printRegPair(outs, "Tnpc",
|
||||||
thread->readMiscReg(MISCREG_TNPC),
|
thread->readMiscReg(MISCREG_TNPC),
|
||||||
shared_data->tnpc[i]);
|
shared_data->tnpc[i-1]);
|
||||||
printRegPair(outs, "Tstate",
|
printRegPair(outs, "Tstate",
|
||||||
thread->readMiscReg(MISCREG_TSTATE),
|
thread->readMiscReg(MISCREG_TSTATE),
|
||||||
shared_data->tstate[i]);
|
shared_data->tstate[i-1]);
|
||||||
printRegPair(outs, "Tt",
|
printRegPair(outs, "Tt",
|
||||||
thread->readMiscReg(MISCREG_TT),
|
thread->readMiscReg(MISCREG_TT),
|
||||||
shared_data->tt[i]);
|
shared_data->tt[i-1]);
|
||||||
printRegPair(outs, "Htstate",
|
printRegPair(outs, "Htstate",
|
||||||
thread->readMiscReg(MISCREG_HTSTATE),
|
thread->readMiscReg(MISCREG_HTSTATE),
|
||||||
shared_data->htstate[i]);
|
shared_data->htstate[i-1]);
|
||||||
}
|
}
|
||||||
thread->setMiscReg(MISCREG_TL, oldTl);
|
thread->setMiscReg(MISCREG_TL, oldTl);
|
||||||
outs << endl;
|
outs << endl;
|
||||||
|
|
Loading…
Reference in a new issue