system.cc (2680:246e7104f744) system.cc (2684:71f3cabf891f)
1/*
2 * Copyright (c) 2004-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;

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

176
177void
178LinuxAlphaSystem::setDelayLoop(ThreadContext *tc)
179{
180 Addr addr = 0;
181 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) {
182 Tick cpuFreq = tc->getCpuPtr()->frequency();
183 Tick intrFreq = platform->intrFrequency();
1/*
2 * Copyright (c) 2004-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;

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

176
177void
178LinuxAlphaSystem::setDelayLoop(ThreadContext *tc)
179{
180 Addr addr = 0;
181 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) {
182 Tick cpuFreq = tc->getCpuPtr()->frequency();
183 Tick intrFreq = platform->intrFrequency();
184 tc->getVirtPort(tc)->write(addr,
185 (uint32_t)((cpuFreq / intrFreq) * 0.9988));
184 VirtualPort *vp;
185
186 vp = tc->getVirtPort();
187 vp->writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988));
188 tc->delVirtPort(vp);
186 }
187}
188
189
190void
191LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc)
192{
193 SkipFuncEvent::process(tc);

--- 77 unchanged lines hidden ---
189 }
190}
191
192
193void
194LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc)
195{
196 SkipFuncEvent::process(tc);

--- 77 unchanged lines hidden ---