mm_disk.cc (9808:13ffc0066b76) mm_disk.cc (10905:a6ca6831e775)
1/*
2 * Copyright (c) 2006 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;

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

165 panic("Invalid access size\n");
166 }
167
168 pkt->makeAtomicResponse();
169 return pioDelay;
170}
171
172void
1/*
2 * Copyright (c) 2006 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;

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

165 panic("Invalid access size\n");
166 }
167
168 pkt->makeAtomicResponse();
169 return pioDelay;
170}
171
172void
173MmDisk::serialize(std::ostream &os)
173MmDisk::serialize(CheckpointOut &cp) const
174{
175 // just write any dirty changes to the cow layer it will take care of
176 // serialization
177 if (dirty) {
178#ifndef NDEBUG
179 int bytes_read =
180#endif
181 image->write(diskData, curSector);
182 assert(bytes_read == SectorSize);
183 }
184}
185
186MmDisk *
187MmDiskParams::create()
188{
189 return new MmDisk(this);
190}
174{
175 // just write any dirty changes to the cow layer it will take care of
176 // serialization
177 if (dirty) {
178#ifndef NDEBUG
179 int bytes_read =
180#endif
181 image->write(diskData, curSector);
182 assert(bytes_read == SectorSize);
183 }
184}
185
186MmDisk *
187MmDiskParams::create()
188{
189 return new MmDisk(this);
190}