Update for new trace data behavior.
authorKevin Lim <ktlim@umich.edu>
Sun, 25 Mar 2007 04:47:14 +0000 (23:47 -0500)
committerKevin Lim <ktlim@umich.edu>
Sun, 25 Mar 2007 04:47:14 +0000 (23:47 -0500)
--HG--
extra : convert_revision : c3df20c5187614febc4cc9f4d4c68bfecfba1ea7

src/cpu/o3/commit_impl.hh

index c17c8836dcd84eb0ef1408382350d9c82ebac728..3fd85595f65e0d8c561096c1a26d6df10ee9c3f3 100644 (file)
@@ -658,7 +658,7 @@ DefaultCommit<Impl>::handleInterrupt()
             DPRINTF(Commit, "Interrupt detected.\n");
 
             Fault new_interrupt = cpu->getInterrupts();
-            assert(new_interrupt == interrupt);
+            assert(new_interrupt != NoFault);
 
             // Clear the interrupt now that it's going to be handled
             toIEW->commitInfo[0].clearInterrupt = true;
@@ -1120,7 +1120,8 @@ DefaultCommit<Impl>::commitHead(DynInstPtr &head_inst, unsigned inst_num)
         if (head_inst->traceData) {
             head_inst->traceData->setFetchSeq(head_inst->seqNum);
             head_inst->traceData->setCPSeq(thread[tid]->numInst);
-            head_inst->traceData->finalize();
+            head_inst->traceData->dump();
+            delete head_inst->traceData;
             head_inst->traceData = NULL;
         }