diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-02-15 17:40:10 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-02-15 17:40:10 -0500 |
commit | 08467a88a67c1d8b8530694b27ca04fbba8dd8d8 (patch) | |
tree | 0d1388ed62a440704c0d0a392c7e2bcb4ef164e0 /src/cpu | |
parent | ca96e7bff1dfaa8e0a6d900feb88c711198b4b2b (diff) | |
download | gem5-08467a88a67c1d8b8530694b27ca04fbba8dd8d8.tar.xz |
dev: Use the correct return type for disk offsets
Replace the use of off_t in the various DiskImage related classes with
std::streampos. off_t is a signed 32 bit integer on most 32-bit
systems, whereas std::streampos is normally a 64 bit integer on most
modern systems. Furthermore, std::streampos is the type used by
tellg() and seekg() in the standard library, so it should have been
used in the first place. This patch makes it possible to use disk
images larger than 2 GiB on 32 bit systems with a modern C++ standard
library.
Diffstat (limited to 'src/cpu')
0 files changed, 0 insertions, 0 deletions