dtod.cc (12624:145fd7b3d0cf) | dtod.cc (13231:c6c133f9e007) |
---|---|
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; --- 50 unchanged lines hidden (view full) --- 59} 60 61Tick 62DumbTOD::read(PacketPtr pkt) 63{ 64 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 65 assert(pkt->getSize() == 8); 66 | 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; --- 50 unchanged lines hidden (view full) --- 59} 60 61Tick 62DumbTOD::read(PacketPtr pkt) 63{ 64 assert(pkt->getAddr() >= pioAddr && pkt->getAddr() < pioAddr + pioSize); 65 assert(pkt->getSize() == 8); 66 |
67 pkt->set(todTime); | 67 pkt->setBE(todTime); |
68 todTime += 1000; 69 70 pkt->makeAtomicResponse(); 71 return pioDelay; 72} 73 74Tick 75DumbTOD::write(PacketPtr pkt) --- 21 unchanged lines hidden --- | 68 todTime += 1000; 69 70 pkt->makeAtomicResponse(); 71 return pioDelay; 72} 73 74Tick 75DumbTOD::write(PacketPtr pkt) --- 21 unchanged lines hidden --- |