arch: Use const StaticInstPtr references where possible
authorAndreas Hansson <andreas.hansson@arm.com>
Sat, 27 Sep 2014 13:08:36 +0000 (09:08 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Sat, 27 Sep 2014 13:08:36 +0000 (09:08 -0400)
commit341dbf266258dcbdb1e5e9f09c244b8ac271faaf
treef071f9a91adeb0c1eb0888ae751c3ee0196bd65d
parentdeb2200671d5b4856ca27d4286253db0d9e12a32
arch: Use const StaticInstPtr references where possible

This patch optimises the passing of StaticInstPtr by avoiding copying
the reference-counting pointer. This avoids first incrementing and
then decrementing the reference-counting pointer.
47 files changed:
src/arch/alpha/faults.cc
src/arch/alpha/faults.hh
src/arch/alpha/stacktrace.cc
src/arch/alpha/stacktrace.hh
src/arch/alpha/utility.hh
src/arch/arm/faults.cc
src/arch/arm/faults.hh
src/arch/arm/stacktrace.cc
src/arch/arm/stacktrace.hh
src/arch/arm/utility.hh
src/arch/generic/debugfaults.hh
src/arch/mips/faults.cc
src/arch/mips/faults.hh
src/arch/mips/stacktrace.cc
src/arch/mips/stacktrace.hh
src/arch/mips/utility.hh
src/arch/power/stacktrace.cc
src/arch/power/stacktrace.hh
src/arch/power/utility.hh
src/arch/sparc/faults.cc
src/arch/sparc/faults.hh
src/arch/sparc/stacktrace.hh
src/arch/sparc/utility.hh
src/arch/x86/faults.cc
src/arch/x86/faults.hh
src/arch/x86/stacktrace.cc
src/arch/x86/stacktrace.hh
src/arch/x86/utility.hh
src/cpu/base_dyn_inst.hh
src/cpu/base_dyn_inst_impl.hh
src/cpu/checker/cpu_impl.hh
src/cpu/exetrace.cc
src/cpu/exetrace.hh
src/cpu/minor/func_unit.cc
src/cpu/minor/func_unit.hh
src/cpu/o3/cpu.cc
src/cpu/o3/cpu.hh
src/cpu/o3/dyn_inst.hh
src/cpu/o3/dyn_inst_impl.hh
src/cpu/pred/bpred_unit.hh
src/cpu/pred/bpred_unit_impl.hh
src/cpu/profile.hh
src/cpu/simple/probes/simpoint.cc
src/cpu/timing_expr.cc
src/cpu/timing_expr.hh
src/sim/faults.cc
src/sim/faults.hh