backdoor.cc (8739:925f15f96322) backdoor.cc (8741:491297d019f3)
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;

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

45#endif
46#include "base/inifile.hh"
47#include "base/str.hh"
48#include "base/trace.hh"
49#include "cpu/base.hh"
50#include "cpu/thread_context.hh"
51#include "debug/AlphaBackdoor.hh"
52#include "dev/alpha/backdoor.hh"
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;

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

45#endif
46#include "base/inifile.hh"
47#include "base/str.hh"
48#include "base/trace.hh"
49#include "cpu/base.hh"
50#include "cpu/thread_context.hh"
51#include "debug/AlphaBackdoor.hh"
52#include "dev/alpha/backdoor.hh"
53#include "dev/alpha/tsunami.hh"
54#include "dev/alpha/tsunami_cchip.hh"
55#include "dev/alpha/tsunami_io.hh"
53#include "dev/platform.hh"
54#include "dev/simple_disk.hh"
55#include "dev/terminal.hh"
56#include "mem/packet.hh"
57#include "mem/packet_access.hh"
58#include "mem/physical.hh"
59#include "params/AlphaBackdoor.hh"
60#include "sim/sim_object.hh"

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

94#if FULL_SYSTEM //XXX No system pointer in SE mode.
95 system->setAlphaAccess(pioAddr);
96 alphaAccess->numCPUs = system->numContexts();
97 alphaAccess->kernStart = system->getKernelStart();
98 alphaAccess->kernEnd = system->getKernelEnd();
99 alphaAccess->entryPoint = system->getKernelEntry();
100 alphaAccess->mem_size = system->physmem->size();
101 alphaAccess->cpuClock = cpu->frequency() / 1000000; // In MHz
56#include "dev/platform.hh"
57#include "dev/simple_disk.hh"
58#include "dev/terminal.hh"
59#include "mem/packet.hh"
60#include "mem/packet_access.hh"
61#include "mem/physical.hh"
62#include "params/AlphaBackdoor.hh"
63#include "sim/sim_object.hh"

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

97#if FULL_SYSTEM //XXX No system pointer in SE mode.
98 system->setAlphaAccess(pioAddr);
99 alphaAccess->numCPUs = system->numContexts();
100 alphaAccess->kernStart = system->getKernelStart();
101 alphaAccess->kernEnd = system->getKernelEnd();
102 alphaAccess->entryPoint = system->getKernelEntry();
103 alphaAccess->mem_size = system->physmem->size();
104 alphaAccess->cpuClock = cpu->frequency() / 1000000; // In MHz
102 alphaAccess->intrClockFrequency = params()->platform->intrFrequency();
105 Tsunami *tsunami = dynamic_cast<Tsunami *>(params()->platform);
106 assert(tsunami);
107 alphaAccess->intrClockFrequency = tsunami->io->frequency();
103#endif
104}
105
106Tick
107AlphaBackdoor::read(PacketPtr pkt)
108{
109
110 /** XXX Do we want to push the addr munging to a bus brige or something? So

--- 210 unchanged lines hidden ---
108#endif
109}
110
111Tick
112AlphaBackdoor::read(PacketPtr pkt)
113{
114
115 /** XXX Do we want to push the addr munging to a bus brige or something? So

--- 210 unchanged lines hidden ---