sinic.cc (13342:1ddb43f47325) sinic.cc (13784:1941dc118243)
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
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
145EtherInt*
146Device::getEthPort(const std::string &if_name, int idx)
145Port &
146Device::getPort(const std::string &if_name, PortID idx)
147{
147{
148 if (if_name == "interface") {
149 if (interface->getPeer())
150 panic("interface already connected to\n");
151
152 return interface;
153 }
154 return NULL;
148 if (if_name == "interface")
149 return *interface;
150 return EtherDevBase::getPort(if_name, idx);
155}
156
157
158void
159Device::prepareIO(ContextID cpu, int index)
160{
161 int size = virtualRegs.size();
162 if (index > size)

--- 1408 unchanged lines hidden ---
151}
152
153
154void
155Device::prepareIO(ContextID cpu, int index)
156{
157 int size = virtualRegs.size();
158 if (index > size)

--- 1408 unchanged lines hidden ---