diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-04-26 16:46:13 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2017-05-09 09:24:06 +0000 |
commit | 708258aba60cfeb092b11c2aa6bb867dce233d47 (patch) | |
tree | 5a3ff110076abda388b61c7d5993d86bac353d03 /src/arch/arm | |
parent | a59d153c08f05e5bfdb2689c20329a75abf092b4 (diff) | |
download | gem5-708258aba60cfeb092b11c2aa6bb867dce233d47.tar.xz |
util: Correctly handle short writes in m5 (read|exec)file
The m5 tool has subcommands that writes a file to the simulated file
system. The implementation of this command currently doesn't check the
return value from write, which leads to compiler warnings and
potentially incorrect behavior. Add the necessary checks.
Change-Id: If558534d3245aa24cf15edf06bd0af4c6ba3908c
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/2962
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/arm')
0 files changed, 0 insertions, 0 deletions