arch,sim: Use the guest ABI mechanism with pseudo instructions.
authorGabe Black <gabeblack@google.com>
Mon, 25 Nov 2019 10:53:47 +0000 (02:53 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 6 Jan 2020 23:45:53 +0000 (23:45 +0000)
commit46117ecdc9eedbf060f32b9e7fb53f509245332d
treeabed15594dd10663de56deda0665f3f17140b407
parent4936474c2cb47528deaeb1b0e8ebca1ffb5b8426
arch,sim: Use the guest ABI mechanism with pseudo instructions.

Right now, there are only two places which call the pseudoInst function
directly, the ARM KVM CPU and the generic mmapped IPR. These two
callers currently use the generic "PseudoInstABI" which is just a
wrapper around the existing getArgument function.

In the future, this getArgument function will be disolved, and the
PseudoInstABI will be defined for each ABI. Since it currently mimics
the Linux ABI since gem5 can only handle one ABI at a time right now,
this implementation will probably be shared by linux system calls,
except that the pseudo inst implementation will eat return values since
those are returned through other means when the pseudo inst is based on
magic address ranges.

Jira Issue: https://gem5.atlassian.net/browse/GEM5-187

Change-Id: Ied97e4a968795158873e492289a1058c8e4e411b
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23178
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/kvm/arm_cpu.cc
src/arch/generic/mmapped_ipr.cc
src/sim/pseudo_inst.cc
src/sim/pseudo_inst.hh