diff options
author | Gabe Black <gabeblack@google.com> | 2019-05-02 00:55:10 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-05-30 14:20:03 +0000 |
commit | 9bffae0e023b1ae0f3a545dc0ec7f8c6325b3069 (patch) | |
tree | 92a70fdd858a5c095cefc687a00c0f8bd6caa3c8 /src/arch/arm | |
parent | 1cb22bc3e3216244fbcae5ce9da8d56a82d456e9 (diff) | |
download | gem5-9bffae0e023b1ae0f3a545dc0ec7f8c6325b3069.tar.xz |
arch, base, sim: Demote (SE|FS)TranslatingPortProxy &s to PortProxy &s.
Al(most) all of the interesting differences between the two classes
have been removed. There are some control methods which are still
specific to each type which may require treating them as their true
type, but most code that consumes them doesn't need to worry about
which is which.
Change-Id: Ie592676f1e496c7940605b66e55cd7fae18e59d6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18577
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/stacktrace.cc | 6 | ||||
-rw-r--r-- | src/arch/arm/utility.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/arm/stacktrace.cc b/src/arch/arm/stacktrace.cc index 837b6ad8b..8fadb81c3 100644 --- a/src/arch/arm/stacktrace.cc +++ b/src/arch/arm/stacktrace.cc @@ -47,7 +47,7 @@ namespace ArmISA static int32_t readSymbol(ThreadContext *tc, const std::string name) { - FSTranslatingPortProxy &vp = tc->getVirtProxy(); + PortProxy &vp = tc->getVirtProxy(); SymbolTable *symtab = tc->getSystemPtr()->kernelSymtab; Addr addr; @@ -75,7 +75,7 @@ ProcessInfo::task(Addr ksp) const Addr tsk; - FSTranslatingPortProxy &vp = tc->getVirtProxy(); + PortProxy &vp = tc->getVirtProxy(); tsk = vp.read<Addr>(base + task_off, GuestByteOrder); return tsk; @@ -90,7 +90,7 @@ ProcessInfo::pid(Addr ksp) const uint16_t pd; - FSTranslatingPortProxy &vp = tc->getVirtProxy(); + PortProxy &vp = tc->getVirtProxy(); pd = vp.read<uint16_t>(task + pid_off, GuestByteOrder); return pd; diff --git a/src/arch/arm/utility.cc b/src/arch/arm/utility.cc index 2888ebbf3..2f7d916d2 100644 --- a/src/arch/arm/utility.cc +++ b/src/arch/arm/utility.cc @@ -107,7 +107,7 @@ getArgument(ThreadContext *tc, int &number, uint16_t size, bool fp) } } else { Addr sp = tc->readIntReg(StackPointerReg); - FSTranslatingPortProxy &vp = tc->getVirtProxy(); + PortProxy &vp = tc->getVirtProxy(); uint64_t arg; if (size == sizeof(uint64_t)) { // If the argument is even it must be aligned |