summaryrefslogtreecommitdiff
path: root/src/cpu/thread_state.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-05-02 01:54:15 -0700
committerGabe Black <gabeblack@google.com>2019-05-30 14:20:03 +0000
commit74e494e1a28562245d9733df61739ea3cc32f92d (patch)
treebeb64021da7679ffcd96d84244ce5c8263ab1ebd /src/cpu/thread_state.hh
parent39896bd265cfab20ab512cf4bceed7b38eca9d91 (diff)
downloadgem5-74e494e1a28562245d9733df61739ea3cc32f92d.tar.xz
cpu: Store the translating proxy with the same pointer in SE or FS mode.
Only one is active at a time, so they can share the same pointer. Change-Id: Ie4ae1f0ffbf9448f6730f9c7d072bc85d6d423da Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18580 Tested-by: kokoro <noreply+kokoro@google.com> Maintainer: Gabe Black <gabeblack@google.com> Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Diffstat (limited to 'src/cpu/thread_state.hh')
-rw-r--r--src/cpu/thread_state.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cpu/thread_state.hh b/src/cpu/thread_state.hh
index e00c86f55..db4a3f414 100644
--- a/src/cpu/thread_state.hh
+++ b/src/cpu/thread_state.hh
@@ -115,9 +115,9 @@ struct ThreadState : public Serializable {
* the se translating port proxy needs to be reinitialized since it
* holds a pointer to the process class.
*/
- if (proxy) {
- delete proxy;
- proxy = NULL;
+ if (virtProxy) {
+ delete virtProxy;
+ virtProxy = NULL;
initMemProxies(NULL);
}
}
@@ -197,8 +197,7 @@ struct ThreadState : public Serializable {
/** A translating port proxy, outgoing only, for functional
* accesse to virtual addresses. */
- FSTranslatingPortProxy *virtProxy;
- SETranslatingPortProxy *proxy;
+ PortProxy *virtProxy;
public:
/*