Accidently "cleaned" away the NPC parameter to the constructor.
authorGabe Black <gblack@eecs.umich.edu>
Sat, 16 Dec 2006 12:47:33 +0000 (07:47 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 16 Dec 2006 12:47:33 +0000 (07:47 -0500)
--HG--
extra : convert_revision : 46670ee86000dfb171d327eb8f58555a4afb2360

src/cpu/base_dyn_inst.hh
src/cpu/base_dyn_inst_impl.hh

index 40e780695f3e224ae30cdbc03fae7d8ea29b094b..07d53d278c39c146b5a3ec6bc257ba64c855fcbd 100644 (file)
@@ -346,7 +346,7 @@ class BaseDynInst : public FastAlloc, public RefCounted
      *  @param seq_num The sequence number of the instruction.
      *  @param cpu Pointer to the instruction's CPU.
      */
-    BaseDynInst(TheISA::ExtMachInst inst, Addr PC,
+    BaseDynInst(TheISA::ExtMachInst inst, Addr PC, Addr NPC,
             Addr pred_PC, Addr pred_NPC,
             InstSeqNum seq_num, ImplCPU *cpu);
 
index d47384871f1c7e1ca694578c3f7d381bcafe7132..c3d71e42842c5936d38d2a45b8c54f8405b8223a 100644 (file)
@@ -62,7 +62,8 @@ my_hash_t thishash;
 #endif
 
 template <class Impl>
-BaseDynInst<Impl>::BaseDynInst(TheISA::ExtMachInst machInst, Addr inst_PC,
+BaseDynInst<Impl>::BaseDynInst(TheISA::ExtMachInst machInst,
+                               Addr inst_PC, Addr inst_NPC,
                                Addr pred_PC, Addr pred_NPC,
                                InstSeqNum seq_num, ImplCPU *cpu)
   : staticInst(machInst), traceData(NULL), cpu(cpu)
@@ -70,7 +71,7 @@ BaseDynInst<Impl>::BaseDynInst(TheISA::ExtMachInst machInst, Addr inst_PC,
     seqNum = seq_num;
 
     PC = inst_PC;
-    nextPC = PC + sizeof(TheISA::MachInst);
+    nextPC = inst_NPC;
     nextNPC = nextPC + sizeof(TheISA::MachInst);
     predPC = pred_PC;
     predNPC = pred_NPC;