physical.cc (3175:693ce319ee95) physical.cc (3196:8eb90bc29df8)
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;

--- 217 unchanged lines hidden (view full) ---

226PhysicalMemory::getPort(const std::string &if_name, int idx)
227{
228 if (if_name == "port" && idx == -1) {
229 if (port != NULL)
230 panic("PhysicalMemory::getPort: additional port requested to memory!");
231 port = new MemoryPort(name() + "-port", this);
232 return port;
233 } else if (if_name == "functional") {
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;

--- 217 unchanged lines hidden (view full) ---

226PhysicalMemory::getPort(const std::string &if_name, int idx)
227{
228 if (if_name == "port" && idx == -1) {
229 if (port != NULL)
230 panic("PhysicalMemory::getPort: additional port requested to memory!");
231 port = new MemoryPort(name() + "-port", this);
232 return port;
233 } else if (if_name == "functional") {
234 /* special port for functional writes at startup. */
234 /* special port for functional writes at startup. And for memtester */
235 return new MemoryPort(name() + "-funcport", this);
236 } else {
237 panic("PhysicalMemory::getPort: unknown port %s requested", if_name);
238 }
239}
240
241void
242PhysicalMemory::recvStatusChange(Port::Status status)

--- 196 unchanged lines hidden ---
235 return new MemoryPort(name() + "-funcport", this);
236 } else {
237 panic("PhysicalMemory::getPort: unknown port %s requested", if_name);
238 }
239}
240
241void
242PhysicalMemory::recvStatusChange(Port::Status status)

--- 196 unchanged lines hidden ---