diff options
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/alpha/backdoor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/alpha/backdoor.cc b/src/dev/alpha/backdoor.cc index f8225b1d8..972778801 100644 --- a/src/dev/alpha/backdoor.cc +++ b/src/dev/alpha/backdoor.cc @@ -63,8 +63,7 @@ using namespace AlphaISA; AlphaBackdoor::AlphaBackdoor(const Params *p) : BasicPioDevice(p), disk(p->disk), terminal(p->terminal), - system(p->system), - cpu(p->cpu) + system(p->system), cpu(p->cpu) { pioSize = sizeof(struct AlphaAccess); @@ -96,7 +95,8 @@ AlphaBackdoor::startup() alphaAccess->mem_size = system->physmem->size(); alphaAccess->cpuClock = cpu->frequency() / 1000000; // In MHz Tsunami *tsunami = dynamic_cast<Tsunami *>(params()->platform); - assert(tsunami); + if (!tsunami) + fatal("Platform is not Tsunami.\n"); alphaAccess->intrClockFrequency = tsunami->io->frequency(); } |