backdoor.cc (8806:669e93d79ed9) backdoor.cc (8931:7a1dfb191e3f)
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 78 unchanged lines hidden (view full) ---

87void
88AlphaBackdoor::startup()
89{
90 system->setAlphaAccess(pioAddr);
91 alphaAccess->numCPUs = system->numContexts();
92 alphaAccess->kernStart = system->getKernelStart();
93 alphaAccess->kernEnd = system->getKernelEnd();
94 alphaAccess->entryPoint = system->getKernelEntry();
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 78 unchanged lines hidden (view full) ---

87void
88AlphaBackdoor::startup()
89{
90 system->setAlphaAccess(pioAddr);
91 alphaAccess->numCPUs = system->numContexts();
92 alphaAccess->kernStart = system->getKernelStart();
93 alphaAccess->kernEnd = system->getKernelEnd();
94 alphaAccess->entryPoint = system->getKernelEntry();
95 alphaAccess->mem_size = system->physmem->size();
95 alphaAccess->mem_size = system->memSize();
96 alphaAccess->cpuClock = cpu->frequency() / 1000000; // In MHz
97 Tsunami *tsunami = dynamic_cast<Tsunami *>(params()->platform);
98 if (!tsunami)
99 fatal("Platform is not Tsunami.\n");
100 alphaAccess->intrClockFrequency = tsunami->io->frequency();
101}
102
103Tick

--- 214 unchanged lines hidden ---
96 alphaAccess->cpuClock = cpu->frequency() / 1000000; // In MHz
97 Tsunami *tsunami = dynamic_cast<Tsunami *>(params()->platform);
98 if (!tsunami)
99 fatal("Platform is not Tsunami.\n");
100 alphaAccess->intrClockFrequency = tsunami->io->frequency();
101}
102
103Tick

--- 214 unchanged lines hidden ---