arch: cpu: Stop passing around misc registers by reference.
authorGabe Black <gabeblack@google.com>
Fri, 19 Oct 2018 00:34:08 +0000 (17:34 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 22 Jan 2019 21:15:45 +0000 (21:15 +0000)
commit230b892fa3f484a46f4cd77f889f8793416b91e2
tree53b32ed7120d019399e36d04655487745bbba9ee
parent774770a6410abb129e2a19de1ca50d7c0c311fef
arch: cpu: Stop passing around misc registers by reference.

These values are all basic integers (specifically uint64_t now), and
so passing them by const & is actually less efficient since there's a
extra level of indirection and an extra value, and the same sized value
(a 64 bit pointer vs. a 64 bit int) is being passed around.

Change-Id: Ie9956b8dc4c225068ab1afaba233ec2b42b76da3
Reviewed-on: https://gem5-review.googlesource.com/c/13626
Maintainer: Gabe Black <gabeblack@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
23 files changed:
src/arch/alpha/isa.cc
src/arch/alpha/isa.hh
src/arch/arm/isa.cc
src/arch/arm/isa.hh
src/arch/mips/isa.cc
src/arch/mips/isa.hh
src/arch/power/isa.hh
src/arch/riscv/isa.cc
src/arch/riscv/isa.hh
src/arch/sparc/isa.hh
src/arch/sparc/ua2005.cc
src/cpu/checker/cpu.hh
src/cpu/checker/thread_context.hh
src/cpu/exec_context.hh
src/cpu/minor/exec_context.hh
src/cpu/o3/cpu.cc
src/cpu/o3/cpu.hh
src/cpu/o3/dyn_inst.hh
src/cpu/o3/thread_context.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/simple/exec_context.hh
src/cpu/simple_thread.hh
src/cpu/thread_context.hh