etherint.cc (11263:8dcc6b40f164) | etherint.cc (12334:e0ab29a34764) |
---|---|
1/* 2 * Copyright (c) 2002-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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#include "dev/net/etherint.hh" 32 | 1/* 2 * Copyright (c) 2002-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; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#include "dev/net/etherint.hh" 32 |
33#include "base/misc.hh" | 33#include "base/logging.hh" |
34#include "sim/sim_object.hh" 35 36void 37EtherInt::setPeer(EtherInt *p) 38{ 39 if (peer && peer != p) 40 panic("You cannot change the peer once it is set.\n" 41 "Current peer=%s Desired peer=%s", peer->name(), p->name()); 42 43 peer = p; 44} | 34#include "sim/sim_object.hh" 35 36void 37EtherInt::setPeer(EtherInt *p) 38{ 39 if (peer && peer != p) 40 panic("You cannot change the peer once it is set.\n" 41 "Current peer=%s Desired peer=%s", peer->name(), p->name()); 42 43 peer = p; 44} |