Deleted Added
sdiff udiff text old ( 4467:cb5715e021ca ) new ( 4468:25046012019e )
full compact
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 // Accept request for "functional" port for backwards compatibility
340 // with places where this function is called from C++. I'd prefer
341 // to move all these into Python someday.
342 if (if_name == "functional") {
343 return new MemoryPort(csprintf("%s-functional", name()), this);
344 }
345
346 if (if_name != "port") {
347 panic("PhysicalMemory::getPort: unknown port %s requested", if_name);
348 }
349
350 if (idx >= ports.size()) {
351 ports.resize(idx+1);
352 }
353

--- 232 unchanged lines hidden ---