exetrace.cc (4359:6b6cb2927594) exetrace.cc (4539:6eeeea62b7c4)
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;

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

157 if (IsOn(ExecRegDelta))
158 {
159 diff = false;
160#ifndef NDEBUG
161#if THE_ISA == SPARC_ISA
162 static int fd = 0;
163 //Don't print what happens for each micro-op, just print out
164 //once at the last op, and for regular instructions.
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;

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

157 if (IsOn(ExecRegDelta))
158 {
159 diff = false;
160#ifndef NDEBUG
161#if THE_ISA == SPARC_ISA
162 static int fd = 0;
163 //Don't print what happens for each micro-op, just print out
164 //once at the last op, and for regular instructions.
165 if(!staticInst->isMicroOp() || staticInst->isLastMicroOp())
165 if(!staticInst->isMicroop() || staticInst->isLastMicroop())
166 {
167 if(!cosim_listener)
168 {
169 int port = 8000;
170 cosim_listener = new ListenSocket();
171 while(!cosim_listener->listen(port, true))
172 {
173 DPRINTF(GDBMisc, "Can't bind port %d\n", port);

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

240 diff = true;
241 }
242 }
243#endif
244#endif
245#if 0 //THE_ISA == SPARC_ISA
246 //Don't print what happens for each micro-op, just print out
247 //once at the last op, and for regular instructions.
166 {
167 if(!cosim_listener)
168 {
169 int port = 8000;
170 cosim_listener = new ListenSocket();
171 while(!cosim_listener->listen(port, true))
172 {
173 DPRINTF(GDBMisc, "Can't bind port %d\n", port);

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

240 diff = true;
241 }
242 }
243#endif
244#endif
245#if 0 //THE_ISA == SPARC_ISA
246 //Don't print what happens for each micro-op, just print out
247 //once at the last op, and for regular instructions.
248 if(!staticInst->isMicroOp() || staticInst->isLastMicroOp())
248 if(!staticInst->isMicroop() || staticInst->isLastMicroop())
249 {
250 static uint64_t regs[32] = {
251 0, 0, 0, 0, 0, 0, 0, 0,
252 0, 0, 0, 0, 0, 0, 0, 0,
253 0, 0, 0, 0, 0, 0, 0, 0,
254 0, 0, 0, 0, 0, 0, 0, 0};
255 static uint64_t ccr = 0;
256 static uint64_t y = 0;

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

427 bool diffCleanwin = false;
428 bool diffTlb = false;
429 Addr m5Pc, lgnPc;
430
431 if (!shared_data)
432 setupSharedData();
433
434 // We took a trap on a micro-op...
249 {
250 static uint64_t regs[32] = {
251 0, 0, 0, 0, 0, 0, 0, 0,
252 0, 0, 0, 0, 0, 0, 0, 0,
253 0, 0, 0, 0, 0, 0, 0, 0,
254 0, 0, 0, 0, 0, 0, 0, 0};
255 static uint64_t ccr = 0;
256 static uint64_t y = 0;

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

427 bool diffCleanwin = false;
428 bool diffTlb = false;
429 Addr m5Pc, lgnPc;
430
431 if (!shared_data)
432 setupSharedData();
433
434 // We took a trap on a micro-op...
435 if (wasMicro && !staticInst->isMicroOp())
435 if (wasMicro && !staticInst->isMicroop())
436 {
437 // let's skip comparing this tick
438 while (!compared)
439 if (shared_data->flags == OWN_M5) {
440 shared_data->flags = OWN_LEGION;
441 compared = true;
442 }
443 compared = false;
444 wasMicro = false;
445 }
446
436 {
437 // let's skip comparing this tick
438 while (!compared)
439 if (shared_data->flags == OWN_M5) {
440 shared_data->flags = OWN_LEGION;
441 compared = true;
442 }
443 compared = false;
444 wasMicro = false;
445 }
446
447 if (staticInst->isLastMicroOp())
447 if (staticInst->isLastMicroop())
448 wasMicro = false;
448 wasMicro = false;
449 else if (staticInst->isMicroOp())
449 else if (staticInst->isMicroop())
450 wasMicro = true;
451
452
450 wasMicro = true;
451
452
453 if(!staticInst->isMicroOp() || staticInst->isLastMicroOp()) {
453 if(!staticInst->isMicroop() || staticInst->isLastMicroop()) {
454 while (!compared) {
455 if (shared_data->flags == OWN_M5) {
456 m5Pc = PC & TheISA::PAddrImplMask;
457 if (bits(shared_data->pstate,3,3)) {
458 m5Pc &= mask(32);
459 }
460 lgnPc = shared_data->pc & TheISA::PAddrImplMask;
461 if (lgnPc != m5Pc)

--- 340 unchanged lines hidden ---
454 while (!compared) {
455 if (shared_data->flags == OWN_M5) {
456 m5Pc = PC & TheISA::PAddrImplMask;
457 if (bits(shared_data->pstate,3,3)) {
458 m5Pc &= mask(32);
459 }
460 lgnPc = shared_data->pc & TheISA::PAddrImplMask;
461 if (lgnPc != m5Pc)

--- 340 unchanged lines hidden ---