summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-03-10 17:01:58 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-03-10 17:01:58 -0500
commit2952ea7c82ced930bac23068acacf071b908aa12 (patch)
tree321a7e9152eb877db97ab81b959656213a468832 /cpu
parent72d870c60fd3ea12265cc8c8ba71ce1a972aba7a (diff)
parent5ba4c8e96ef694431ff1715fbea7cd0e70e6b072 (diff)
downloadgem5-2952ea7c82ced930bac23068acacf071b908aa12.tar.xz
Merge m5.eecs.umich.edu:/bk/newmem
into ewok.(none):/home/gblack/m5/newmem --HG-- extra : convert_revision : 58a5ae14fc8ac697206a3bfa1cf543a3579123d4
Diffstat (limited to 'cpu')
-rw-r--r--cpu/cpu_exec_context.hh2
-rw-r--r--cpu/exec_context.hh6
2 files changed, 6 insertions, 2 deletions
diff --git a/cpu/cpu_exec_context.hh b/cpu/cpu_exec_context.hh
index 6cc586467..764c8fab3 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 &section);
+ 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); }