diff options
author | Marco Elver <marco.elver@ed.ac.uk> | 2012-09-10 11:57:43 -0400 |
---|---|---|
committer | Marco Elver <marco.elver@ed.ac.uk> | 2012-09-10 11:57:43 -0400 |
commit | 9e0edbcea8d14446487f13f56b65c669ba580673 (patch) | |
tree | 7780efe6534912c2020e4f7882d8868ccf250581 /src/mem/physical.hh | |
parent | 21d4d50ba1f8aae47108db91bc20108812fb62a4 (diff) | |
download | gem5-9e0edbcea8d14446487f13f56b65c669ba580673.tar.xz |
Mem: Allow serializing of more than INT_MAX bytes
Despite gzwrite taking an unsigned for length, it returns an int for
bytes written; gzwrite fails if (int)len < 0. Because of this, call
gzwrite with len no larger than INT_MAX: write in blocks of INT_MAX if
data to be written is larger than INT_MAX.
Diffstat (limited to 'src/mem/physical.hh')
0 files changed, 0 insertions, 0 deletions