summaryrefslogtreecommitdiff
path: root/cpu/exec_context.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-03-10 16:51:52 -0500
committerRon Dreslinski <rdreslin@umich.edu>2006-03-10 16:51:52 -0500
commitd07115f97266185fea006854f6e5eea8bf992c4b (patch)
tree36bc16af4714285abb8cf23ac0fc89b193a30524 /cpu/exec_context.hh
parente3d96aa889680469be44bb9cd59d3db837cb4dc4 (diff)
downloadgem5-d07115f97266185fea006854f6e5eea8bf992c4b.tar.xz
Add getMemPort to exec context proxy
--HG-- extra : convert_revision : a28c0410a63745b7455ad957c582c38319901cf0
Diffstat (limited to 'cpu/exec_context.hh')
-rw-r--r--cpu/exec_context.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh
index c917b46e9..225f19b87 100644
--- a/cpu/exec_context.hh
+++ b/cpu/exec_context.hh
@@ -79,10 +79,10 @@ class ExecContext
Halted
};
- TranslatingPort * port;
-
virtual ~ExecContext() { };
+ virtual TranslatingPort *getMemPort() = 0;
+
virtual BaseCPU *getCpuPtr() = 0;
virtual void setCpuId(int id) = 0;
@@ -243,6 +243,8 @@ class ProxyExecContext : public ExecContext
public:
+ TranslatingPort *getMemPort() { return actualXC->getMemPort(); }
+
BaseCPU *getCpuPtr() { return actualXC->getCpuPtr(); }
void setCpuId(int id) { actualXC->setCpuId(id); }