diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2011-07-03 11:38:25 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2011-07-03 11:38:25 -0500 |
commit | 9b85b4b19a1f39927ce9d4f39e5815ec6c87fbf7 (patch) | |
tree | 482974f9e6a85b6867ff5f9f3fb1f891f0fdf96d /src/cpu/exec_context.hh | |
parent | 5e0851d554d55e4fa22240c803cc4b9ad5e293f5 (diff) | |
parent | ec89fffb07318e50e90257ebeb17535bf6787952 (diff) | |
download | gem5-9b85b4b19a1f39927ce9d4f39e5815ec6c87fbf7.tar.xz |
Merged with Gabe's recent changes.
Diffstat (limited to 'src/cpu/exec_context.hh')
-rw-r--r-- | src/cpu/exec_context.hh | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/cpu/exec_context.hh b/src/cpu/exec_context.hh index a8704851f..61c9b24a9 100644 --- a/src/cpu/exec_context.hh +++ b/src/cpu/exec_context.hh @@ -106,21 +106,10 @@ class ExecContext { /** Returns a pointer to the ThreadContext. */ ThreadContext *tcBase(); - /** Reads an address, creating a memory request with the given - * flags. Stores result of read in data. */ - template <class T> - Fault read(Addr addr, T &data, unsigned flags); + Fault readMem(Addr addr, uint8_t *data, unsigned size, unsigned flags); - Fault readBytes(Addr addr, uint8_t *data, unsigned size, unsigned flags); - - /** Writes to an address, creating a memory request with the given - * flags. Writes data to memory. For store conditionals, returns - * the result of the store in res. */ - template <class T> - Fault write(T data, Addr addr, unsigned flags, uint64_t *res); - - Fault writeBytes(uint8_t *data, unsigned size, - Addr addr, unsigned flags, uint64_t *res); + Fault writeMem(uint8_t *data, unsigned size, + Addr addr, unsigned flags, uint64_t *res); #if FULL_SYSTEM /** Somewhat Alpha-specific function that handles returning from |