physical.cc (4468:25046012019e) physical.cc (4470:9ab7a98dae90)
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;

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

71 memset(pmemAddr, 0, params()->addrRange.size());
72
73 pagePtr = 0;
74}
75
76void
77PhysicalMemory::init()
78{
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;

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

71 memset(pmemAddr, 0, params()->addrRange.size());
72
73 pagePtr = 0;
74}
75
76void
77PhysicalMemory::init()
78{
79 if (ports.size() == 0) {
80 fatal("PhysicalMemory object %s is unconnected!", name());
81 }
82
79 for (PortIterator pi = ports.begin(); pi != ports.end(); ++pi) {
80 if (*pi)
81 (*pi)->sendStatusChange(Port::RangeChange);
82 }
83}
84
85PhysicalMemory::~PhysicalMemory()
86{

--- 499 unchanged lines hidden ---
83 for (PortIterator pi = ports.begin(); pi != ports.end(); ++pi) {
84 if (*pi)
85 (*pi)->sendStatusChange(Port::RangeChange);
86 }
87}
88
89PhysicalMemory::~PhysicalMemory()
90{

--- 499 unchanged lines hidden ---