From 5fcd11eaa57dbb02b24c3ba5bd991473f404f081 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 13 Nov 2011 02:05:32 -0800 Subject: SE/FS: Get rid of FULL_SYSTEM in dev. --- src/dev/alpha/AlphaBackdoor.py | 3 +-- src/dev/alpha/backdoor.cc | 8 -------- src/dev/alpha/backdoor.hh | 2 -- src/dev/alpha/tsunami.cc | 7 ------- src/dev/simple_disk.cc | 2 -- 5 files changed, 1 insertion(+), 21 deletions(-) (limited to 'src/dev') diff --git a/src/dev/alpha/AlphaBackdoor.py b/src/dev/alpha/AlphaBackdoor.py index c6d4583c2..14894b863 100644 --- a/src/dev/alpha/AlphaBackdoor.py +++ b/src/dev/alpha/AlphaBackdoor.py @@ -37,5 +37,4 @@ class AlphaBackdoor(BasicPioDevice): disk = Param.SimpleDisk("Simple Disk") terminal = Param.Terminal(Parent.any, "The console terminal") platform = Param.Platform(Parent.any, "Platform this device is part of.") - if buildEnv['FULL_SYSTEM']: # No AlphaSystem in SE mode. - system = Param.AlphaSystem(Parent.any, "system object") + system = Param.AlphaSystem(Parent.any, "system object") diff --git a/src/dev/alpha/backdoor.cc b/src/dev/alpha/backdoor.cc index 1c5bb5f54..f8225b1d8 100644 --- a/src/dev/alpha/backdoor.cc +++ b/src/dev/alpha/backdoor.cc @@ -38,11 +38,7 @@ #include #include -#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" @@ -67,9 +63,7 @@ using namespace AlphaISA; AlphaBackdoor::AlphaBackdoor(const Params *p) : BasicPioDevice(p), disk(p->disk), terminal(p->terminal), -#if FULL_SYSTEM //XXX No system pointer in SE mode. system(p->system), -#endif cpu(p->cpu) { @@ -94,7 +88,6 @@ 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(); @@ -105,7 +98,6 @@ AlphaBackdoor::startup() Tsunami *tsunami = dynamic_cast(params()->platform); assert(tsunami); alphaAccess->intrClockFrequency = tsunami->io->frequency(); -#endif } Tick diff --git a/src/dev/alpha/backdoor.hh b/src/dev/alpha/backdoor.hh index 5249ce71f..2acaba9a3 100644 --- a/src/dev/alpha/backdoor.hh +++ b/src/dev/alpha/backdoor.hh @@ -92,10 +92,8 @@ class AlphaBackdoor : public BasicPioDevice /** the system console (the terminal) is accessable from the console */ Terminal *terminal; -#if FULL_SYSTEM //XXX No AlphaSystem defined in SE mode. /** a pointer to the system we are running in */ AlphaSystem *system; -#endif /** a pointer to the CPU boot cpu */ BaseCPU *cpu; diff --git a/src/dev/alpha/tsunami.cc b/src/dev/alpha/tsunami.cc index 65154c7d8..41a2fef0c 100644 --- a/src/dev/alpha/tsunami.cc +++ b/src/dev/alpha/tsunami.cc @@ -36,12 +36,7 @@ #include #include -#include "config/full_system.hh" - -#if FULL_SYSTEM //XXX AlphaSystem doesn't build in SE mode yet. #include "arch/alpha/system.hh" -#endif - #include "config/the_isa.hh" #include "cpu/intr_control.hh" #include "dev/alpha/tsunami.hh" @@ -64,11 +59,9 @@ Tsunami::Tsunami(const Params *p) void Tsunami::init() { -#if FULL_SYSTEM //XXX AlphaSystem doesn't build in SE mode yet. AlphaSystem *alphaSystem = dynamic_cast(system); assert(alphaSystem); alphaSystem->setIntrFreq(io->frequency()); -#endif } void diff --git a/src/dev/simple_disk.cc b/src/dev/simple_disk.cc index 890c90dbf..4bf24b1cd 100644 --- a/src/dev/simple_disk.cc +++ b/src/dev/simple_disk.cc @@ -70,9 +70,7 @@ SimpleDisk::read(Addr addr, baddr_t block, int count) const for (int i = 0, j = 0; i < count; i += SectorSize, j++) image->read(data + i, block + j); -#if FULL_SYSTEM //XXX No functional port in SE mode. system->functionalPort->writeBlob(addr, data, count); -#endif DPRINTF(SimpleDisk, "read block=%#x len=%d\n", (uint64_t)block, count); DDUMP(SimpleDiskData, data, count); -- cgit v1.2.3