mm_disk.cc (11793:ef606668d247) | mm_disk.cc (12544:6a4c3acc4289) |
---|---|
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; --- 168 unchanged lines hidden (view full) --- 177 // serialization 178 if (dirty) { 179#ifndef NDEBUG 180 int bytes_read = 181#endif 182 image->write(diskData, curSector); 183 assert(bytes_read == SectorSize); 184 } | 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; --- 168 unchanged lines hidden (view full) --- 177 // serialization 178 if (dirty) { 179#ifndef NDEBUG 180 int bytes_read = 181#endif 182 image->write(diskData, curSector); 183 assert(bytes_read == SectorSize); 184 } |
185 ClockedObject::serialize(cp); |
|
185} 186 187MmDisk * 188MmDiskParams::create() 189{ 190 return new MmDisk(this); 191} | 186} 187 188MmDisk * 189MmDiskParams::create() 190{ 191 return new MmDisk(this); 192} |