system.cc (8229:78bf55f23338) | system.cc (8706:b1838faf3bcc) |
---|---|
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; --- 143 unchanged lines hidden (view full) --- 152 153void 154LinuxMipsSystem::setDelayLoop(ThreadContext *tc) 155{ 156 Addr addr = 0; 157 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) { 158 Tick cpuFreq = tc->getCpuPtr()->frequency(); 159 Tick intrFreq = platform->intrFrequency(); | 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; --- 143 unchanged lines hidden (view full) --- 152 153void 154LinuxMipsSystem::setDelayLoop(ThreadContext *tc) 155{ 156 Addr addr = 0; 157 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) { 158 Tick cpuFreq = tc->getCpuPtr()->frequency(); 159 Tick intrFreq = platform->intrFrequency(); |
160 VirtualPort *vp; | 160 FSTranslatingPortProxy* vp; |
161 | 161 |
162 vp = tc->getVirtPort(); | 162 vp = tc->getVirtProxy(); |
163 vp->writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988)); 164 } 165} 166 167 168void 169LinuxMipsSystem::SkipDelayLoopEvent::process(ThreadContext *tc) 170{ --- 19 unchanged lines hidden --- | 163 vp->writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988)); 164 } 165} 166 167 168void 169LinuxMipsSystem::SkipDelayLoopEvent::process(ThreadContext *tc) 170{ --- 19 unchanged lines hidden --- |