summaryrefslogtreecommitdiff
path: root/src/cpu/base_dyn_inst_impl.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-12-16 07:22:19 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-12-16 07:22:19 -0500
commit4d66ddbe35252d3d70a0c3d25d100672db5f1ef9 (patch)
treebd989d141043aa01d1d10b7093a60e468fa365b0 /src/cpu/base_dyn_inst_impl.hh
parent181f4f32f6a2ffd19700e54cd5581fce19ec04a5 (diff)
downloadgem5-4d66ddbe35252d3d70a0c3d25d100672db5f1ef9.tar.xz
Added a predicted NPC field, explicitly stored whether the instruction was predicted taken or not.
--HG-- extra : convert_revision : ba668af302ca4d8a3a032e907d5058e1477f462a
Diffstat (limited to 'src/cpu/base_dyn_inst_impl.hh')
-rw-r--r--src/cpu/base_dyn_inst_impl.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/base_dyn_inst_impl.hh b/src/cpu/base_dyn_inst_impl.hh
index 2f6859de2..d47384871 100644
--- a/src/cpu/base_dyn_inst_impl.hh
+++ b/src/cpu/base_dyn_inst_impl.hh
@@ -63,8 +63,8 @@ my_hash_t thishash;
template <class Impl>
BaseDynInst<Impl>::BaseDynInst(TheISA::ExtMachInst machInst, Addr inst_PC,
- Addr pred_PC, InstSeqNum seq_num,
- ImplCPU *cpu)
+ Addr pred_PC, Addr pred_NPC,
+ InstSeqNum seq_num, ImplCPU *cpu)
: staticInst(machInst), traceData(NULL), cpu(cpu)
{
seqNum = seq_num;
@@ -73,6 +73,8 @@ BaseDynInst<Impl>::BaseDynInst(TheISA::ExtMachInst machInst, Addr inst_PC,
nextPC = PC + sizeof(TheISA::MachInst);
nextNPC = nextPC + sizeof(TheISA::MachInst);
predPC = pred_PC;
+ predNPC = pred_NPC;
+ predTaken = false;
initVars();
}