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; --- 51 unchanged lines hidden (view full) --- 60} 61 62Tick 63DumbTOD::read(PacketPtr pkt) 64{ 65 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 66 assert(pkt->getSize() == 8); 67 |
68 pkt->set(todTime); 69 todTime += 1000; 70 71 pkt->makeAtomicResponse(); 72 return pioDelay; 73} 74 75Tick --- 22 unchanged lines hidden --- |