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 VirtualPort *vp; 185 186 vp = tc->getVirtPort(); 187 vp->writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988)); 188 tc->delVirtPort(vp); |
189 } 190} 191 192 193void 194LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc) 195{ 196 SkipFuncEvent::process(tc); --- 77 unchanged lines hidden --- |