summaryrefslogtreecommitdiff
path: root/src/arch/x86/memhelpers.hh
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-07-02 22:35:04 -0700
committerGabe Black <gblack@eecs.umich.edu>2011-07-02 22:35:04 -0700
commit3a1428365a479db70d893e62e37c1dd302067d4a (patch)
tree04f070345857d9a3fc70cb4b9f2c498284983615 /src/arch/x86/memhelpers.hh
parent2e7426664a254688e7cf926b902cb8c535a106dd (diff)
downloadgem5-3a1428365a479db70d893e62e37c1dd302067d4a.tar.xz
ExecContext: Rename the readBytes/writeBytes functions to readMem and writeMem.
readBytes and writeBytes had the word "bytes" in their names because they accessed blobs of bytes. This distinguished them from the read and write functions which handled higher level data types. Because those functions don't exist any more, this change renames readBytes and writeBytes to more general names, readMem and writeMem, which reflect the fact that they are how you read and write memory. This also makes their names more consistent with the register reading/writing functions, although those are still read and set for some reason.
Diffstat (limited to 'src/arch/x86/memhelpers.hh')
-rw-r--r--src/arch/x86/memhelpers.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/memhelpers.hh b/src/arch/x86/memhelpers.hh
index 9dd54b937..43612c9be 100644
--- a/src/arch/x86/memhelpers.hh
+++ b/src/arch/x86/memhelpers.hh
@@ -44,7 +44,7 @@ Fault
readMemTiming(XC *xc, Trace::InstRecord *traceData, Addr addr,
uint64_t &mem, unsigned dataSize, unsigned flags)
{
- return xc->readBytes(addr, (uint8_t *)&mem, dataSize, flags);
+ return xc->readMem(addr, (uint8_t *)&mem, dataSize, flags);
}
static inline uint64_t
@@ -99,7 +99,7 @@ writeMemTiming(XC *xc, Trace::InstRecord *traceData, uint64_t mem,
traceData->setData(mem);
}
mem = TheISA::htog(mem);
- return xc->writeBytes((uint8_t *)&mem, dataSize, addr, flags, res);
+ return xc->writeMem((uint8_t *)&mem, dataSize, addr, flags, res);
}
template <class XC>