arch, mem: Make the page table lookup function return a pointer.
authorGabe Black <gabeblack@google.com>
Fri, 5 Jan 2018 23:01:00 +0000 (15:01 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 20 Jan 2018 08:06:56 +0000 (08:06 +0000)
commit2a15bfd79ced20a6d4cbf0a0a4c2fbb1444b9a44
treed1fec5a31a00928dc9d5a3f4f05394236187d19c
parentb1ade08b2da4a0b398b69ea4eb2de35b08941826
arch, mem: Make the page table lookup function return a pointer.

This avoids having a copy in the lookup function itself, and the
declaration of a lot of temporary TLB entry pointers in callers. The
gpu TLB seems to have had the most dependence on the original signature
of the lookup function, partially because it was relying on a somewhat
unsafe copy to a TLB entry using a base class pointer type.

Change-Id: I8b1cf494468163deee000002d243541657faf57f
Reviewed-on: https://gem5-review.googlesource.com/7343
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
13 files changed:
src/arch/alpha/faults.cc
src/arch/arm/remote_gdb.cc
src/arch/mips/remote_gdb.cc
src/arch/power/remote_gdb.cc
src/arch/riscv/remote_gdb.cc
src/arch/sparc/faults.cc
src/arch/sparc/remote_gdb.cc
src/arch/x86/remote_gdb.cc
src/arch/x86/tlb.cc
src/arch/x86/tlb.hh
src/gpu-compute/gpu_tlb.cc
src/mem/page_table.cc
src/mem/page_table.hh