diff options
author | Gabe Black <gabeblack@google.com> | 2019-05-02 01:33:31 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-05-30 14:20:03 +0000 |
commit | 39896bd265cfab20ab512cf4bceed7b38eca9d91 (patch) | |
tree | 425121810f14f44e12a899a9308cc3a63dd37cf3 /src/cpu/thread_state.hh | |
parent | f349b0845cb235504c3b3613e828403f1a3fa208 (diff) | |
download | gem5-39896bd265cfab20ab512cf4bceed7b38eca9d91.tar.xz |
cpu, sim: Return PortProxy &s from all the proxy accessors.
This is a step towards merging the accessors for SE and FS modes.
Change-Id: I76818ab88b97097ac363e243be9cc1911b283090
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18579
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/cpu/thread_state.hh')
-rw-r--r-- | src/cpu/thread_state.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh index 200633922..e00c86f55 100644 --- a/src/cpu/thread_state.hh +++ b/src/cpu/thread_state.hh @@ -47,6 +47,9 @@ namespace Kernel { class Checkpoint; +class FSTranslatingPortProxy; +class SETranslatingPortProxy; + /** * Struct for holding general thread state that is needed across CPU * models. This includes things such as pointers to the process, @@ -100,7 +103,7 @@ struct ThreadState : public Serializable { PortProxy &getPhysProxy(); - FSTranslatingPortProxy &getVirtProxy(); + PortProxy &getVirtProxy(); Process *getProcessPtr() { return process; } @@ -119,7 +122,7 @@ struct ThreadState : public Serializable { } } - SETranslatingPortProxy &getMemProxy(); + PortProxy &getMemProxy(); /** Reads the number of instructions functionally executed and * committed. |