diff options
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); |