system.cc (4826:259b996a6da6) system.cc (5499:8bfc7650c344)
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;

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

164 Addr addr = 0;
165 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) {
166 Tick cpuFreq = tc->getCpuPtr()->frequency();
167 Tick intrFreq = platform->intrFrequency();
168 VirtualPort *vp;
169
170 vp = tc->getVirtPort();
171 vp->writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988));
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;

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

164 Addr addr = 0;
165 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) {
166 Tick cpuFreq = tc->getCpuPtr()->frequency();
167 Tick intrFreq = platform->intrFrequency();
168 VirtualPort *vp;
169
170 vp = tc->getVirtPort();
171 vp->writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988));
172 tc->delVirtPort(vp);
173 }
174}
175
176
177void
178LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc)
179{
180 SkipFuncEvent::process(tc);

--- 18 unchanged lines hidden ---
172 }
173}
174
175
176void
177LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc)
178{
179 SkipFuncEvent::process(tc);

--- 18 unchanged lines hidden ---