Deleted Added
sdiff udiff text old ( 3863:adf3ddd4bcde ) new ( 3880:06fc2b8ca95f )
full compact
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;

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

307 bool diffGl = false;
308 bool diffAsi = false;
309 bool diffPil = false;
310 bool diffCwp = false;
311 bool diffCansave = false;
312 bool diffCanrestore = false;
313 bool diffOtherwin = false;
314 bool diffCleanwin = false;
315 Addr m5Pc, lgnPc;
316
317
318 if(!staticInst->isMicroOp() || staticInst->isLastMicroOp()) {
319 while (!compared) {
320 if (shared_data->flags == OWN_M5) {
321 m5Pc = PC & TheISA::PAddrImplMask;
322 lgnPc = shared_data->pc & TheISA::PAddrImplMask;

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

390 if(shared_data->canrestore !=
391 thread->readMiscReg(MISCREG_CANRESTORE))
392 diffCanrestore = true;
393 if(shared_data->otherwin != thread->readMiscReg(MISCREG_OTHERWIN))
394 diffOtherwin = true;
395 if(shared_data->cleanwin != thread->readMiscReg(MISCREG_CLEANWIN))
396 diffCleanwin = true;
397
398 if ((diffPC || diffCC || diffInst || diffRegs || diffTpc ||
399 diffTnpc || diffTstate || diffTt || diffHpstate ||
400 diffHtstate || diffHtba || diffPstate || diffY ||
401 diffCcr || diffTl || diffGl || diffAsi || diffPil ||
402 diffCwp || diffCansave || diffCanrestore ||
403 diffOtherwin || diffCleanwin)
404 && !((staticInst->machInst & 0xC1F80000) == 0x81D00000)
405 && !((staticInst->machInst & 0xC1F80000) == 0xC0580000)
406 && !((staticInst->machInst & 0xC1F80000) == 0xC0000000)
407 && !((staticInst->machInst & 0xC1F80000) == 0xC0700000)) {
408
409 outs << "Differences found between M5 and Legion:";
410 if (diffPC)
411 outs << " [PC]";
412 if (diffCC)
413 outs << " [CC]";
414 if (diffInst)
415 outs << " [Instruction]";

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

448 if (diffCansave)
449 outs << " [Cansave]";
450 if (diffCanrestore)
451 outs << " [Canrestore]";
452 if (diffOtherwin)
453 outs << " [Otherwin]";
454 if (diffCleanwin)
455 outs << " [Cleanwin]";
456 outs << endl << endl;
457
458 outs << right << setfill(' ') << setw(15)
459 << "M5 PC: " << "0x"<< setw(16) << setfill('0')
460 << hex << m5Pc << endl;
461 outs << setfill(' ') << setw(15)
462 << "Legion PC: " << "0x"<< setw(16) << setfill('0') << hex
463 << lgnPc << endl << endl;

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

572 outs << " X ";
573 else
574 outs << " | ";
575 outs << "0x" << setw(16) << hex
576 << shared_data->intregs[y*8+x]
577 << endl;*/
578 }
579 }
580 thread->getITBPtr()->dumpAll();
581 thread->getDTBPtr()->dumpAll();
582
583 diffcount++;
584 if (diffcount > 2)
585 fatal("Differences found between Legion and M5\n");
586 }
587

--- 116 unchanged lines hidden ---