diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-10-16 05:06:40 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-10-16 05:06:40 -0700 |
commit | 6ba3ebae43bbc7267e7f013bed949cc3339f0308 (patch) | |
tree | 6eb698cd17648481cf829778d6fe60c5f4d3192a /src/mem/translating_port.hh | |
parent | 3595b0c5a1a3e398a7efae932cd4175cd1ca3f0e (diff) | |
download | gem5-6ba3ebae43bbc7267e7f013bed949cc3339f0308.tar.xz |
SE/FS: Build in the tport in FS mode.
Diffstat (limited to 'src/mem/translating_port.hh')
-rw-r--r-- | src/mem/translating_port.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mem/translating_port.hh b/src/mem/translating_port.hh index 76c7947be..ee0aea8df 100644 --- a/src/mem/translating_port.hh +++ b/src/mem/translating_port.hh @@ -32,10 +32,13 @@ #ifndef __MEM_TRANSLATING_PROT_HH__ #define __MEM_TRANSLATING_PROT_HH__ +#include "config/full_system.hh" #include "mem/port.hh" +#if !FULL_SYSTEM class PageTable; class Process; +#endif class TranslatingPort : public FunctionalPort { @@ -47,13 +50,18 @@ class TranslatingPort : public FunctionalPort }; private: +#if !FULL_SYSTEM PageTable *pTable; Process *process; +#endif AllocType allocating; public: TranslatingPort(const std::string &_name, - Process *p, AllocType alloc); +#if !FULL_SYSTEM + Process *p, +#endif + AllocType alloc); virtual ~TranslatingPort(); bool tryReadBlob(Addr addr, uint8_t *p, int size); |