system.cc (11793:ef606668d247) system.cc (13893:0e863b6c441a)
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) ---

176void
177LinuxAlphaSystem::setDelayLoop(ThreadContext *tc)
178{
179 Addr addr = 0;
180 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) {
181 Tick cpuFreq = tc->getCpuPtr()->frequency();
182 assert(intrFreq);
183 FSTranslatingPortProxy &vp = tc->getVirtProxy();
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) ---

176void
177LinuxAlphaSystem::setDelayLoop(ThreadContext *tc)
178{
179 Addr addr = 0;
180 if (kernelSymtab->findAddress("loops_per_jiffy", addr)) {
181 Tick cpuFreq = tc->getCpuPtr()->frequency();
182 assert(intrFreq);
183 FSTranslatingPortProxy &vp = tc->getVirtProxy();
184 vp.writeHtoG(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988));
184 vp.write(addr, (uint32_t)((cpuFreq / intrFreq) * 0.9988),
185 GuestByteOrder);
185 }
186}
187
188void
189LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc)
190{
191 SkipFuncEvent::process(tc);
192 // calculate and set loops_per_jiffy

--- 17 unchanged lines hidden ---
186 }
187}
188
189void
190LinuxAlphaSystem::SkipDelayLoopEvent::process(ThreadContext *tc)
191{
192 SkipFuncEvent::process(tc);
193 // calculate and set loops_per_jiffy

--- 17 unchanged lines hidden ---