cpu: Simplify the rename interface and use RegId
authorRekai Gonzalez-Alberquilla <Rekai.GonzalezAlberquilla@arm.com>
Wed, 5 Apr 2017 18:14:34 +0000 (13:14 -0500)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 5 Jul 2017 14:43:49 +0000 (14:43 +0000)
commita473b5a6eb269cc303ecfb5e5643d891a5d255d9
tree4fde47e5c62c566f81d13f6e90ad98cca781ff6e
parent43d833246fcfe092a0c08dde1fdf7e3d409d1af9
cpu: Simplify the rename interface and use RegId

With the hierarchical RegId there are a lot of functions that are
redundant now.

The idea behind the simplification is that instead of having the regId,
telling which kind of register read/write/rename/lookup/etc. and then
the function panic_if'ing if the regId is not of the appropriate type,
we provide an interface that decides what kind of register to read
depending on the register type of the given regId.

Change-Id: I7d52e9e21fc01205ae365d86921a4ceb67a57178
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
[ Fix RISCV build issues ]
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2702
64 files changed:
src/arch/alpha/isa.hh
src/arch/alpha/isa/branch.isa
src/arch/alpha/isa/fp.isa
src/arch/alpha/isa/main.isa
src/arch/arm/insts/misc.cc
src/arch/arm/isa.hh
src/arch/arm/isa/insts/data64.isa
src/arch/arm/isa/insts/fp.isa
src/arch/arm/isa/insts/misc.isa
src/arch/mips/isa.hh
src/arch/mips/isa/base.isa
src/arch/mips/isa/formats/int.isa
src/arch/power/insts/branch.cc
src/arch/power/insts/static_inst.cc
src/arch/power/isa.hh
src/arch/riscv/isa.hh
src/arch/riscv/isa/base.isa
src/arch/riscv/isa/formats/type.isa
src/arch/sparc/isa.hh
src/arch/sparc/isa/base.isa
src/arch/sparc/isa/formats/integerop.isa
src/arch/sparc/isa/formats/mem/util.isa
src/arch/sparc/isa/formats/priv.isa
src/arch/x86/insts/microfpop.hh
src/arch/x86/insts/microldstop.hh
src/arch/x86/insts/micromediaop.hh
src/arch/x86/insts/microregop.hh
src/arch/x86/insts/static_inst.cc
src/arch/x86/insts/static_inst.hh
src/arch/x86/isa.hh
src/arch/x86/isa/microops/limmop.isa
src/cpu/base_dyn_inst.hh
src/cpu/checker/cpu.hh
src/cpu/checker/cpu_impl.hh
src/cpu/checker/thread_context.hh
src/cpu/exec_context.hh
src/cpu/minor/dyn_inst.cc
src/cpu/minor/exec_context.hh
src/cpu/minor/scoreboard.cc
src/cpu/minor/scoreboard.hh
src/cpu/o3/comm.hh
src/cpu/o3/cpu.cc
src/cpu/o3/dyn_inst.hh
src/cpu/o3/free_list.hh
src/cpu/o3/iew_impl.hh
src/cpu/o3/inst_queue_impl.hh
src/cpu/o3/probe/elastic_trace.cc
src/cpu/o3/regfile.cc
src/cpu/o3/regfile.hh
src/cpu/o3/rename.hh
src/cpu/o3/rename_impl.hh
src/cpu/o3/rename_map.cc
src/cpu/o3/rename_map.hh
src/cpu/o3/scoreboard.hh
src/cpu/o3/thread_context.hh
src/cpu/o3/thread_context_impl.hh
src/cpu/reg_class.cc
src/cpu/reg_class.hh
src/cpu/reg_class_impl.hh [new file with mode: 0644]
src/cpu/simple/exec_context.hh
src/cpu/simple_thread.hh
src/cpu/static_inst.hh
src/cpu/thread_context.hh
src/cpu/timing_expr.cc