physical.cc (2665:a124942bacb8) physical.cc (2738:5d7a31c7fa29)
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;

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

168 default:
169 panic("unimplemented");
170 }
171
172 pkt->result = Packet::Success;
173}
174
175Port *
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;

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

168 default:
169 panic("unimplemented");
170 }
171
172 pkt->result = Packet::Success;
173}
174
175Port *
176PhysicalMemory::getPort(const std::string &if_name)
176PhysicalMemory::getPort(const std::string &if_name, int idx)
177{
177{
178 if (if_name == "") {
178 if (if_name == "port" && idx == -1) {
179 if (port != NULL)
180 panic("PhysicalMemory::getPort: additional port requested to memory!");
181 port = new MemoryPort(name() + "-port", this);
182 return port;
183 } else if (if_name == "functional") {
184 /* special port for functional writes at startup. */
185 return new MemoryPort(name() + "-funcport", this);
186 } else {

--- 192 unchanged lines hidden ---
179 if (port != NULL)
180 panic("PhysicalMemory::getPort: additional port requested to memory!");
181 port = new MemoryPort(name() + "-port", this);
182 return port;
183 } else if (if_name == "functional") {
184 /* special port for functional writes at startup. */
185 return new MemoryPort(name() + "-funcport", this);
186 } else {

--- 192 unchanged lines hidden ---