table_walker.cc (7748:7bf78d12b359) | table_walker.cc (7781:a9f9eed35b18) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 78 unchanged lines hidden (view full) --- 87 } 88} 89 90Port* 91TableWalker::getPort(const std::string &if_name, int idx) 92{ 93 if (if_name == "port") { 94 if (port != NULL) | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 78 unchanged lines hidden (view full) --- 87 } 88} 89 90Port* 91TableWalker::getPort(const std::string &if_name, int idx) 92{ 93 if (if_name == "port") { 94 if (port != NULL) |
95 fatal("%s: port already connected to %s", 96 name(), port->getPeer()->name()); | 95 return port; |
97 System *sys = params()->sys; 98 Tick minb = params()->min_backoff; 99 Tick maxb = params()->max_backoff; 100 port = new DmaPort(this, sys, minb, maxb); 101 return port; 102 } 103 return NULL; 104} --- 623 unchanged lines hidden --- | 96 System *sys = params()->sys; 97 Tick minb = params()->min_backoff; 98 Tick maxb = params()->max_backoff; 99 port = new DmaPort(this, sys, minb, maxb); 100 return port; 101 } 102 return NULL; 103} --- 623 unchanged lines hidden --- |