mm_disk.cc (4918:3214e3694fb2) | mm_disk.cc (8229:78bf55f23338) |
---|---|
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; --- 24 unchanged lines hidden (view full) --- 33 * in legion. Any access is translated to an offset in the disk image. 34 */ 35 36#include <cstring> 37 38#include "base/trace.hh" 39#include "dev/sparc/mm_disk.hh" 40#include "dev/platform.hh" | 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; --- 24 unchanged lines hidden (view full) --- 33 * in legion. Any access is translated to an offset in the disk image. 34 */ 35 36#include <cstring> 37 38#include "base/trace.hh" 39#include "dev/sparc/mm_disk.hh" 40#include "dev/platform.hh" |
41#include "mem/port.hh" | |
42#include "mem/packet_access.hh" | 41#include "mem/packet_access.hh" |
42#include "mem/port.hh" |
|
43#include "sim/byteswap.hh" 44#include "sim/system.hh" 45 46MmDisk::MmDisk(const Params *p) 47 : BasicPioDevice(p), image(p->image), curSector((off_t)-1), dirty(false) 48{ 49 std::memset(&diskData, 0, SectorSize); 50 pioSize = image->size() * SectorSize; --- 127 unchanged lines hidden --- | 43#include "sim/byteswap.hh" 44#include "sim/system.hh" 45 46MmDisk::MmDisk(const Params *p) 47 : BasicPioDevice(p), image(p->image), curSector((off_t)-1), dirty(false) 48{ 49 std::memset(&diskData, 0, SectorSize); 50 pioSize = image->size() * SectorSize; --- 127 unchanged lines hidden --- |