From d07115f97266185fea006854f6e5eea8bf992c4b Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Fri, 10 Mar 2006 16:51:52 -0500 Subject: Add getMemPort to exec context proxy --HG-- extra : convert_revision : a28c0410a63745b7455ad957c582c38319901cf0 --- cpu/cpu_exec_context.hh | 2 ++ cpu/exec_context.hh | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'cpu') diff --git a/cpu/cpu_exec_context.hh b/cpu/cpu_exec_context.hh index 6f725d1e4..846fa98b0 100644 --- a/cpu/cpu_exec_context.hh +++ b/cpu/cpu_exec_context.hh @@ -216,6 +216,8 @@ class CPUExecContext void serialize(std::ostream &os); void unserialize(Checkpoint *cp, const std::string §ion); + TranslatingPort *getMemPort() { return port; } + BaseCPU *getCpuPtr() { return cpu; } ExecContext *getProxy() { return proxy; } 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); } -- cgit v1.2.3