Add getMemPort to exec context proxy

--HG--
extra : convert_revision : a28c0410a63745b7455ad957c582c38319901cf0
This commit is contained in:
Ron Dreslinski 2006-03-10 16:51:52 -05:00
parent e3d96aa889
commit d07115f972
2 changed files with 6 additions and 2 deletions

View file

@ -216,6 +216,8 @@ class CPUExecContext
void serialize(std::ostream &os);
void unserialize(Checkpoint *cp, const std::string &section);
TranslatingPort *getMemPort() { return port; }
BaseCPU *getCpuPtr() { return cpu; }
ExecContext *getProxy() { return proxy; }

View file

@ -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); }