diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-09-30 00:28:33 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-09-30 00:28:33 -0700 |
commit | 51f7a6666027870c24432dcaa56cfc1b4741fdc6 (patch) | |
tree | 6dd74cdab55616bae7c974bc6c4fc39e60c9808a /src/dev/alpha/backdoor.cc | |
parent | 35e20c7470a16cbc1187553375269800b980eb78 (diff) | |
download | gem5-51f7a6666027870c24432dcaa56cfc1b4741fdc6.tar.xz |
SE/FS: Build the devices in SE mode.
Diffstat (limited to 'src/dev/alpha/backdoor.cc')
-rw-r--r-- | src/dev/alpha/backdoor.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dev/alpha/backdoor.cc b/src/dev/alpha/backdoor.cc index 31ab62866..4d9d046de 100644 --- a/src/dev/alpha/backdoor.cc +++ b/src/dev/alpha/backdoor.cc @@ -38,7 +38,11 @@ #include <cstddef> #include <string> +#include "config/full_system.hh" + +#if FULL_SYSTEM //XXX No AlphaSystem in SE mode. #include "arch/alpha/system.hh" +#endif #include "base/inifile.hh" #include "base/str.hh" #include "base/trace.hh" @@ -60,7 +64,10 @@ using namespace AlphaISA; AlphaBackdoor::AlphaBackdoor(const Params *p) : BasicPioDevice(p), disk(p->disk), terminal(p->terminal), - system(p->system), cpu(p->cpu) +#if FULL_SYSTEM //XXX No system pointer in SE mode. + system(p->system), +#endif + cpu(p->cpu) { pioSize = sizeof(struct AlphaAccess); @@ -84,6 +91,7 @@ AlphaBackdoor::AlphaBackdoor(const Params *p) void AlphaBackdoor::startup() { +#if FULL_SYSTEM //XXX No system pointer in SE mode. system->setAlphaAccess(pioAddr); alphaAccess->numCPUs = system->numContexts(); alphaAccess->kernStart = system->getKernelStart(); @@ -92,6 +100,7 @@ AlphaBackdoor::startup() alphaAccess->mem_size = system->physmem->size(); alphaAccess->cpuClock = cpu->frequency() / 1000000; // In MHz alphaAccess->intrClockFrequency = params()->platform->intrFrequency(); +#endif } Tick |