diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-03-04 22:37:45 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-03-04 22:37:45 -0500 |
commit | 9e1dc7f20549e9590c5b1450be17ff03057e346f (patch) | |
tree | 29e8dd06790c50fa35ae1feba632bba0be72ce0d /src/cpu/inorder/inorder_dyn_inst.cc | |
parent | 7c8d54421665ccbc204487cb6a9faa31c1b3c243 (diff) | |
download | gem5-9e1dc7f20549e9590c5b1450be17ff03057e346f.tar.xz |
InOrderCPU: Clean up Constructors to initialize variables correctly (i.e. in a way for the compiler to play *nice*)
Diffstat (limited to 'src/cpu/inorder/inorder_dyn_inst.cc')
-rw-r--r-- | src/cpu/inorder/inorder_dyn_inst.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cpu/inorder/inorder_dyn_inst.cc b/src/cpu/inorder/inorder_dyn_inst.cc index d292d72f0..ceb3cbe51 100644 --- a/src/cpu/inorder/inorder_dyn_inst.cc +++ b/src/cpu/inorder/inorder_dyn_inst.cc @@ -76,16 +76,14 @@ InOrderDynInst::InOrderDynInst(InOrderCPU *cpu, } InOrderDynInst::InOrderDynInst(StaticInstPtr &_staticInst) - : staticInst(_staticInst), traceData(NULL) + : seqNum(0), staticInst(_staticInst), traceData(NULL) { - seqNum = 0; initVars(); } InOrderDynInst::InOrderDynInst() - : traceData(NULL), cpu(cpu) + : seqNum(0), traceData(NULL), cpu(cpu) { - seqNum = 0; initVars(); } |