From: Gabe Black Date: Sat, 16 Dec 2006 12:47:33 +0000 (-0500) Subject: Accidently "cleaned" away the NPC parameter to the constructor. X-Git-Tag: m5_2.0_beta3~274^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6eb16adb424bca1a1a1d13604def2f15c8624d1;p=gem5.git Accidently "cleaned" away the NPC parameter to the constructor. --HG-- extra : convert_revision : 46670ee86000dfb171d327eb8f58555a4afb2360 --- diff --git a/src/cpu/base_dyn_inst.hh b/src/cpu/base_dyn_inst.hh index 40e780695..07d53d278 100644 --- a/src/cpu/base_dyn_inst.hh +++ b/src/cpu/base_dyn_inst.hh @@ -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); diff --git a/src/cpu/base_dyn_inst_impl.hh b/src/cpu/base_dyn_inst_impl.hh index d47384871..c3d71e428 100644 --- a/src/cpu/base_dyn_inst_impl.hh +++ b/src/cpu/base_dyn_inst_impl.hh @@ -62,7 +62,8 @@ my_hash_t thishash; #endif template -BaseDynInst::BaseDynInst(TheISA::ExtMachInst machInst, Addr inst_PC, +BaseDynInst::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::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;