1/*
2 * Copyright (c) 2001-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;
--- 322 unchanged lines hidden (view full) ---
331 }
332
333 pkt->result = Packet::Success;
334}
335
336Port *
337PhysicalMemory::getPort(const std::string &if_name, int idx)
338{
339 if (if_name != "port") {
340 panic("PhysicalMemory::getPort: unknown port %s requested", if_name);
341 }
342
343 if (idx >= ports.size()) {
344 ports.resize(idx+1);
345 }
346
--- 232 unchanged lines hidden ---
2 * Copyright (c) 2001-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;
--- 322 unchanged lines hidden (view full) ---
331 }
332
333 pkt->result = Packet::Success;
334}
335
336Port *
337PhysicalMemory::getPort(const std::string &if_name, int idx)
338{
339 if (if_name != "port") {
340 panic("PhysicalMemory::getPort: unknown port %s requested", if_name);
341 }
342
343 if (idx >= ports.size()) {
344 ports.resize(idx+1);
345 }
346
--- 232 unchanged lines hidden ---