exetrace.cc (3814:33bd4ec9d66a) exetrace.cc (3815:2a2d5311b66e)
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;

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

333 }
334 }
335 uint64_t oldTl = thread->readMiscReg(MISCREG_TL);
336 if (oldTl != shared_data->tl)
337 diffTl = true;
338 for (int i = 1; i <= MaxTL; i++) {
339 thread->setMiscReg(MISCREG_TL, i);
340 if (thread->readMiscReg(MISCREG_TPC) !=
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;

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

333 }
334 }
335 uint64_t oldTl = thread->readMiscReg(MISCREG_TL);
336 if (oldTl != shared_data->tl)
337 diffTl = true;
338 for (int i = 1; i <= MaxTL; i++) {
339 thread->setMiscReg(MISCREG_TL, i);
340 if (thread->readMiscReg(MISCREG_TPC) !=
341 shared_data->tpc[i])
341 shared_data->tpc[i-1])
342 diffTpc = true;
343 if (thread->readMiscReg(MISCREG_TNPC) !=
342 diffTpc = true;
343 if (thread->readMiscReg(MISCREG_TNPC) !=
344 shared_data->tnpc[i])
344 shared_data->tnpc[i-1])
345 diffTnpc = true;
346 if (thread->readMiscReg(MISCREG_TSTATE) !=
345 diffTnpc = true;
346 if (thread->readMiscReg(MISCREG_TSTATE) !=
347 shared_data->tstate[i])
347 shared_data->tstate[i-1])
348 diffTstate = true;
349 if (thread->readMiscReg(MISCREG_TT) !=
348 diffTstate = true;
349 if (thread->readMiscReg(MISCREG_TT) !=
350 shared_data->tt[i])
350 shared_data->tt[i-1])
351 diffTt = true;
352 if (thread->readMiscReg(MISCREG_HTSTATE) !=
351 diffTt = true;
352 if (thread->readMiscReg(MISCREG_HTSTATE) !=
353 shared_data->htstate[i])
353 shared_data->htstate[i-1])
354 diffHtstate = true;
355 }
356 thread->setMiscReg(MISCREG_TL, oldTl);
357
358 if(shared_data->tba != thread->readMiscReg(MISCREG_TBA))
359 diffTba = true;
360 //When the hpstate register is read by an instruction,
361 //legion has bit 11 set. When it's in storage, it doesn't.

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

522 shared_data->cleanwin);
523 outs << endl;
524 for (int i = 1; i <= MaxTL; i++) {
525 printLevelHeader(outs, i);
526 printColumnLabels(outs);
527 thread->setMiscReg(MISCREG_TL, i);
528 printRegPair(outs, "Tpc",
529 thread->readMiscReg(MISCREG_TPC),
354 diffHtstate = true;
355 }
356 thread->setMiscReg(MISCREG_TL, oldTl);
357
358 if(shared_data->tba != thread->readMiscReg(MISCREG_TBA))
359 diffTba = true;
360 //When the hpstate register is read by an instruction,
361 //legion has bit 11 set. When it's in storage, it doesn't.

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

522 shared_data->cleanwin);
523 outs << endl;
524 for (int i = 1; i <= MaxTL; i++) {
525 printLevelHeader(outs, i);
526 printColumnLabels(outs);
527 thread->setMiscReg(MISCREG_TL, i);
528 printRegPair(outs, "Tpc",
529 thread->readMiscReg(MISCREG_TPC),
530 shared_data->tpc[i]);
530 shared_data->tpc[i-1]);
531 printRegPair(outs, "Tnpc",
532 thread->readMiscReg(MISCREG_TNPC),
531 printRegPair(outs, "Tnpc",
532 thread->readMiscReg(MISCREG_TNPC),
533 shared_data->tnpc[i]);
533 shared_data->tnpc[i-1]);
534 printRegPair(outs, "Tstate",
535 thread->readMiscReg(MISCREG_TSTATE),
534 printRegPair(outs, "Tstate",
535 thread->readMiscReg(MISCREG_TSTATE),
536 shared_data->tstate[i]);
536 shared_data->tstate[i-1]);
537 printRegPair(outs, "Tt",
538 thread->readMiscReg(MISCREG_TT),
537 printRegPair(outs, "Tt",
538 thread->readMiscReg(MISCREG_TT),
539 shared_data->tt[i]);
539 shared_data->tt[i-1]);
540 printRegPair(outs, "Htstate",
541 thread->readMiscReg(MISCREG_HTSTATE),
540 printRegPair(outs, "Htstate",
541 thread->readMiscReg(MISCREG_HTSTATE),
542 shared_data->htstate[i]);
542 shared_data->htstate[i-1]);
543 }
544 thread->setMiscReg(MISCREG_TL, oldTl);
545 outs << endl;
546
547 printSectionHeader(outs, "General Purpose Registers");
548 static const char * regtypes[4] = {"%g", "%o", "%l", "%i"};
549 for(int y = 0; y < 4; y++)
550 {

--- 139 unchanged lines hidden ---
543 }
544 thread->setMiscReg(MISCREG_TL, oldTl);
545 outs << endl;
546
547 printSectionHeader(outs, "General Purpose Registers");
548 static const char * regtypes[4] = {"%g", "%o", "%l", "%i"};
549 for(int y = 0; y < 4; y++)
550 {

--- 139 unchanged lines hidden ---