system.cc (5268:5bfc53fe60e7) system.cc (5499:8bfc7650c344)
1/*
2 * Copyright (c) 2004-2006 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;

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

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

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

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

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

--- 18 unchanged lines hidden ---