summaryrefslogtreecommitdiff
path: root/src/arch/x86/memhelpers.hh
diff options
context:
space:
mode:
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>