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; --- 128 unchanged lines hidden (view full) --- 137void 138Device::resetStats() 139{ 140 Base::resetStats(); 141 142 _maxVnicDistance = 0; 143} 144 |
145Port & 146Device::getPort(const std::string &if_name, PortID idx) |
147{ |
148 if (if_name == "interface") 149 return *interface; 150 return EtherDevBase::getPort(if_name, idx); |
151} 152 153 154void 155Device::prepareIO(ContextID cpu, int index) 156{ 157 int size = virtualRegs.size(); 158 if (index > size) --- 1408 unchanged lines hidden --- |