diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-06-09 23:00:13 -0700 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-06-09 23:00:13 -0700 |
commit | 11f1c8dd3eb769b39939eafedc7155ad36701a7e (patch) | |
tree | bdbef19d6c1267a189465b55b3940faf868977c0 /src/cpu/o3/fetch_impl.hh | |
parent | 9f75ac783b396ae9e0040929c467df9bd21d26b0 (diff) | |
download | gem5-11f1c8dd3eb769b39939eafedc7155ad36701a7e.tar.xz |
Use the right type
--HG--
extra : convert_revision : b5ca3153ca786ea4e86bfe83f7760ba9ee41a882
Diffstat (limited to 'src/cpu/o3/fetch_impl.hh')
-rw-r--r-- | src/cpu/o3/fetch_impl.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh index 0d7403023..ff4617fcc 100644 --- a/src/cpu/o3/fetch_impl.hh +++ b/src/cpu/o3/fetch_impl.hh @@ -29,6 +29,9 @@ * Korey Sewell */ +#include <algorithm> +#include <cstring> + #include "config/use_checker.hh" #include "arch/isa_traits.hh" @@ -48,8 +51,6 @@ #include "sim/system.hh" #endif // FULL_SYSTEM -#include <algorithm> - template<class Impl> void DefaultFetch<Impl>::IcachePort::setPeer(Port *port) @@ -374,7 +375,7 @@ DefaultFetch<Impl>::processCacheCompletion(PacketPtr pkt) return; } - memcpy(cacheData[tid], pkt->getPtr<uint8_t *>(), cacheBlkSize); + memcpy(cacheData[tid], pkt->getPtr<uint8_t>(), cacheBlkSize); cacheDataValid[tid] = true; if (!drainPending) { |