sim-se: Switch to new MemState API
authorMatthew Poremba <matthew.poremba@amd.com>
Tue, 17 Mar 2020 20:47:44 +0000 (15:47 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Wed, 25 Mar 2020 19:18:15 +0000 (19:18 +0000)
commit5c2fb0c65204960bb743ec06197d8994da71c82b
tree24c2b448932eeea6d3fefdf7ba3edff8cdbf64e2
parent56ee199b3d67943fda4f91c466cbdecfc5d54cb8
sim-se: Switch to new MemState API

Switch over to the new MemState API by specifying memory regions for
stack in each ISA, changing brkFunc to use MemState for heap memory,
and calling the MemState fixup in fixupStackFault (renamed to just
fixupFault).

Change-Id: Ie3559a68ce476daedf1a3f28b168a8fbc7face5e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25366
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
18 files changed:
src/arch/arm/process.cc
src/arch/mips/process.cc
src/arch/power/process.cc
src/arch/riscv/process.cc
src/arch/riscv/tlb.cc
src/arch/sparc/faults.cc
src/arch/sparc/process.cc
src/arch/x86/faults.cc
src/arch/x86/process.cc
src/arch/x86/pseudo_inst.cc
src/arch/x86/tlb.cc
src/gpu-compute/compute_unit.cc
src/gpu-compute/gpu_tlb.cc
src/mem/se_translating_port_proxy.cc
src/sim/faults.cc
src/sim/process.cc
src/sim/process.hh
src/sim/syscall_emul.cc