summaryrefslogtreecommitdiff
path: root/src/dev/simple_disk.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-09-30 00:28:33 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-09-30 00:28:33 -0700
commit51f7a6666027870c24432dcaa56cfc1b4741fdc6 (patch)
tree6dd74cdab55616bae7c974bc6c4fc39e60c9808a /src/dev/simple_disk.cc
parent35e20c7470a16cbc1187553375269800b980eb78 (diff)
downloadgem5-51f7a6666027870c24432dcaa56cfc1b4741fdc6.tar.xz
SE/FS: Build the devices in SE mode.
Diffstat (limited to 'src/dev/simple_disk.cc')
-rw-r--r--src/dev/simple_disk.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dev/simple_disk.cc b/src/dev/simple_disk.cc
index 4bf24b1cd..890c90dbf 100644
--- a/src/dev/simple_disk.cc
+++ b/src/dev/simple_disk.cc
@@ -70,7 +70,9 @@ SimpleDisk::read(Addr addr, baddr_t block, int count) const
for (int i = 0, j = 0; i < count; i += SectorSize, j++)
image->read(data + i, block + j);
+#if FULL_SYSTEM //XXX No functional port in SE mode.
system->functionalPort->writeBlob(addr, data, count);
+#endif
DPRINTF(SimpleDisk, "read block=%#x len=%d\n", (uint64_t)block, count);
DDUMP(SimpleDiskData, data, count);