summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2006-03-02 01:01:03 -0500
committerSteve Reinhardt <stever@eecs.umich.edu>2006-03-02 01:01:03 -0500
commit0c2c7171a83f772b297016aa7382157f070b3466 (patch)
treee4991486490e340f541d3df3c1520aad57aaf107 /base
parent22504f8b48978be286d98be0df72d015ab6ff559 (diff)
downloadgem5-0c2c7171a83f772b297016aa7382157f070b3466.tar.xz
More progress... run a few instructions now, but die on the second
memory access (I think because we're deallocating our one and only CpuRequest object). base/loader/aout_object.cc: base/loader/ecoff_object.cc: base/loader/elf_object.cc: Add flag to force allocation of new pages on data writes. cpu/simple/cpu.cc: Several minor fixes. Switch to atomic mode for now. mem/physical.hh: Don't copy the packet to the response event, just keep a reference to the original. mem/translating_port.cc: mem/translating_port.hh: Add parameter to writeBlobFunctional() to force allocation of unallocated pages on writes. --HG-- extra : convert_revision : 05cb31c7b0047b492dcfa0d12ddee690ef762b44
Diffstat (limited to 'base')
-rw-r--r--base/loader/aout_object.cc6
-rw-r--r--base/loader/ecoff_object.cc6
-rw-r--r--base/loader/elf_object.cc4
3 files changed, 10 insertions, 6 deletions
diff --git a/base/loader/aout_object.cc b/base/loader/aout_object.cc
index 54bf81aaf..d1b27120d 100644
--- a/base/loader/aout_object.cc
+++ b/base/loader/aout_object.cc
@@ -91,9 +91,11 @@ AoutObject::loadSections(TranslatingPort *memPort, bool loadPhys)
// Since we don't really have an MMU and all memory is
// zero-filled, there's no need to set up the BSS segment.
if (text.size != 0)
- memPort->writeBlobFunctional(textAddr, fileData + N_TXTOFF(*execHdr), text.size);
+ memPort->writeBlobFunctional(textAddr, fileData + N_TXTOFF(*execHdr),
+ text.size, true);
if (data.size != 0)
- memPort->writeBlobFunctional(dataAddr, fileData + N_DATOFF(*execHdr), data.size);
+ memPort->writeBlobFunctional(dataAddr, fileData + N_DATOFF(*execHdr),
+ data.size, true);
return true;
}
diff --git a/base/loader/ecoff_object.cc b/base/loader/ecoff_object.cc
index a18ecc026..a4b8c8713 100644
--- a/base/loader/ecoff_object.cc
+++ b/base/loader/ecoff_object.cc
@@ -94,8 +94,10 @@ EcoffObject::loadSections(TranslatingPort *memPort, bool loadPhys)
// Since we don't really have an MMU and all memory is
// zero-filled, there's no need to set up the BSS segment.
- memPort->writeBlobFunctional(textAddr, fileData + ECOFF_TXTOFF(execHdr), text.size);
- memPort->writeBlobFunctional(dataAddr, fileData + ECOFF_DATOFF(execHdr), data.size);
+ memPort->writeBlobFunctional(textAddr, fileData + ECOFF_TXTOFF(execHdr),
+ text.size, true);
+ memPort->writeBlobFunctional(dataAddr, fileData + ECOFF_DATOFF(execHdr),
+ data.size, true);
return true;
}
diff --git a/base/loader/elf_object.cc b/base/loader/elf_object.cc
index aeb81cb76..11c94d651 100644
--- a/base/loader/elf_object.cc
+++ b/base/loader/elf_object.cc
@@ -183,9 +183,9 @@ ElfObject::loadSections(TranslatingPort *memPort, bool loadPhys)
// Since we don't really have an MMU and all memory is
// zero-filled, there's no need to set up the BSS segment.
if (text.size != 0)
- memPort->writeBlobFunctional(textAddr, fileTextBits, text.size);
+ memPort->writeBlobFunctional(textAddr, fileTextBits, text.size, true);
if (data.size != 0)
- memPort->writeBlobFunctional(dataAddr, fileDataBits, data.size);
+ memPort->writeBlobFunctional(dataAddr, fileDataBits, data.size, true);
return true;
}